On my ubuntu 8.10 box I belong to the admin group and so have access to sudo and the privileged commands. Here is the line from the sudoers file:
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL
Now I use the mount and umount command frequently to mount various filesystems and drives but am tired of entering the password each time. I tried to modify the sudoers file so I would not need to repeatedly enter my password :
# User privilege specification
root ALL=(ALL} ALL
unclec ALL= NOPASSWD: /bin/mount, /bin/umount
Unfortunately, I have had no joy. What would be the best way of doing this ? Note that only me and not other members of the admin group must have the ability to do this.