Mount /cdrom as non-root user - does this actually work for
Sergey 'DoubleF' Zaharchenko
doublef at tele-kom.ru
Sun Jan 4 09:16:42 PST 2004
On Sun, 4 Jan 2004 00:53:52 +0000
Stacey Roberts <stacey at vickiandstacey.com> probably wrote:
> I've just realised that I am unable to mount a cdrom disk as a
> non-root user for *any* of my machines.
> All hosts concerned are running FreeBSD-4.9Stable, and running through:
> http://www.freebsd.org/doc/en_US.IS...SER-FLOPPYMOUNT does *not* work
> for me at all..,
Why not use sudo (from the ports) and allow yourself (and anyone who
needs) to mount the cdrom?
Here's what I have in my sudoers file:
df ALL=NOPASSWD: /sbin/umount /cdrom,\
/sbin/mount_cd9660 -o nosuid\,nodev /dev/acd0c /cdrom
This means `df' can mount and unmount the cdrom. And I have a couple of
scripts, `cdrom+' and `cdrom-', which contain the allowed commands
above. As you see, I don't need a password or anything to mount the
> Stacey Roberts
> B. Sc (HONS) Computer Science
> Web: www.vickiandstacey.com
The penalty for laughing in a courtroom is six months in jail; if it
were not for this penalty, the jury would never hear the evidence.
-- H. L. Mencken
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20040104/af4e4bf1/attachment-0001.bin
More information about the freebsd-questions