![]() |
|
FreeBSD General Other questions regarding FreeBSD which do not fit in any of the categories below. |
![]() |
|
Thread Tools | Display Modes |
|
|||
![]()
Hi All
I have a strange problem I want to backup a directory on a FreeBSD mail server. I set up a script which runs the mount_smbfs command. It mounts the remote windows share, tars up the directory, copies it to the share and then unmounts the share. In I run it from the command line it works like so ./backup.sh or /usr/local/etc/backup.sh When I it runs from /etc/crontab, I get this error below: mount_smbfs: unable to open connection: syserr = Authentication error umount: /home/backup: not a file system root directory Any Ideas as to why this could be happening? |
|
|||
![]()
My goodness, yes that works. Well I'll be a monkey's uncle. I relaize I had to use all absolute paths though but that's fine.
|
|
|||
![]()
mount_smbfs with option -N tries to open $HOME/.nsmbrc for authentication.
In /etc/crontab, a non-standard HOME may be defined, disabling mount_smbfs to find the configuration file. You could solve this by putting .nsmbrc into the HOME directory specified in /etc/crontab, or by setting the HOME environment variable to the directory where .nsmbrc resides from within the shell script where mount_smbfs is used. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Handy X11 script | Gabe_G23 | Guides | 6 | 25th October 2008 05:08 PM |
Automation Script | ninjatux | FreeBSD General | 2 | 24th October 2008 04:16 PM |
my 1st sh script | graudeejs | Programming | 12 | 18th August 2008 10:25 PM |
Crontab not working | beandip | FreeBSD General | 6 | 6th August 2008 08:33 PM |
Shell Script. | bsdnewbie999 | Programming | 21 | 15th July 2008 07:54 AM |