I have set up the cron job at reboot like
@reboot sleep 20;mount -a
BUt i have received he email that it asks for password
how can i supply password with mount
I have set up the cron job at reboot like
@reboot sleep 20;mount -a
BUt i have received he email that it asks for password
how can i supply password with mount
If you mean with CIFS, then look at the user
, password
and credentials
mount options. See the mount.cifs(8)
man page for more details.
mount -a it's a "Mount All Filesystem", so you need root privileges. Just install the cronjob with
crontab -e
while logged in as root, or edit /etc/crontab and modify the entry like:
0 * * * * @reboot root /bin/mount -a