[mdlug] /etc/sudoers -A rant and an attempt at better documentation
Carl T. Miller
millerc at cantonpl.org
Sun Jan 7 09:27:41 EST 2007
Raymond McLaughlin wrote:
> ##This line allows user 'driveray', on any host, to execute /bin/mount
> ## and /bin/umount with root privileges without having to give a
> ## password.
> driveray ALL = NOPASSWD: /bin/mount, /bin/umount
> ### This was the line that busted my nuts for hours! I work with a lot
> ### of ISO images, and want my regular user to be able to mount them
> ### without having to give the root password. The problem was that I
> ### kept trying to put the NOPASSWD parameter at or near the end of the
> ### line. I'm still not certain if the 'ALL' refers to "on all hosts' or
> ### 'as all users'
The ALL in your example means all hosts. That lets you copy the
file to multiple computers and without needing to customize each one.
Ray, did you try adding driveray to the cdrom group? A lot of
distros have groups like cdrom, audio, floppy and tape to make
it easy to give a user access easily.
c
More information about the mdlug
mailing list