Hi, Please forgive me still asking for help trying to get this to work - I don't understand why not despite manuals and this list's help. The drive just does not mount this way. I need to be able to use different mount points at different non-clashing times.
HARDY AIM: through cron, use scripts to load one drive in different folders at different times - for valid business reasons. ________ EXISTING FOLDERS IN /media FOR MOUNTING POINTS /media/backhardy32 ________ FSTAB: not in fstab, not wanted in fstab ________ SUDOERS FILE: (BLANK LINES DELETED TO SAVE SPACE IN EMAIL) # /etc/sudoers # This file MUST be edited with the 'visudo' command as root. # See the man page for details on how to write a sudoers file. Defaults env_reset # Uncomment to allow members of group sudo to not need a password # %sudo ALL=NOPASSWD: ALL # Host alias specification # User alias specification # Cmnd alias specification # User privilege specification root ALL=(ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL david ALL = NOPASSWD: /bin/mount, /bin/umount ________ CRON FILE: /etc/cron.d file called 'david': 00 04 * * * /home/david/my-cron-jobs/mount-hardy32-backups.sh 30 05 * * * /home/david/my-cron-jobs/unmount-hardy32-backups.sh (tested with times 00 09 and 00 10 respectively so I was awake and could see if it worked!) ________ FILES IN /home/david/my-cron-jobs: mount-hardy32-backups.sh: #!/bin/sh sudo mount /media/backhardy32 unmount-hardy32-backups.sh: #!/bin/sh sudo umount /media/backhardy32 ________ >From my previous email, other suggestion as well as sudoers, were tried but mounting/unmounting did not work manually. sudoers was edited correctly (after learning curve! :-) ) Many thanks everybody - help is really appreciated. David -- ubuntu-au mailing list ubuntu-au@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-au