Took me a while to figure out that crontab won't let me mount a drive at startup. I had to simply put it in /etc/fstab. Add to the bottom of the file.
# cat /etc/fstab
#
//servername/sharefolder /mnt/localshare cifs users,auto,credentials=/root/credentials.txt,noexec 0 0
#
make sure the credentials file is setup like so:
# cat /root/credentials.txt
username=MyUsername
password=MyPassword
# cat /etc/fstab
#
//servername/sharefolder /mnt/localshare cifs users,auto,credentials=/root/credentials.txt,noexec 0 0
#
make sure the credentials file is setup like so:
# cat /root/credentials.txt
username=MyUsername
password=MyPassword
No comments:
Post a Comment