[mdlug] /etc/sudoers -A rant and an attempt at better documentation
Carl T. Miller
millerc at cantonpl.org
Sun Jan 7 11:11:49 EST 2007
Daniel Hedlund wrote:
> Carl T. Miller wrote:
>> Notice that the original line will not let someone run "sudo
>> mount -t ext2 /cdrom". It will only allow "sudo mount /cdrom".
>> I would worry if it was like this:
>> %users ALL=/sbin/mount * /cdrom, /sbin/umount /cdrom
>
> One shouldn't need to run "mount -t ext2 /cdrom". I would think that it
> would automatically detect the filesystem type through the use of its
> "magic" identification system (ie. "file -Ls /dev/cdrom") or similar
> methods.
The mount command uses /etc/fstab for the default settings, unless
they are overwritten by options on the command line. So it doesn't
automatically detect the filesystem...unless you put "auto" as the
filesystem type in /etc/fstab.
So as long as /etc/fstab lists iso9660 as the only filesystem for
/cdrom, to mount any other filesystem would require a command line
option.
c
More information about the mdlug
mailing list