Mount /cdrom as non-root user - does this actually work for anyone?

Sergey 'DoubleF' Zaharchenko doublef at
Sun Jan 4 09:16:42 PST 2004

On Sun, 4 Jan 2004 00:53:52 +0000
Stacey Roberts <stacey at> probably wrote:

> Hello,

>     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:
> 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
cdrom (NOPASSWD).


> Regards,
> Stacey
> -- 
> Stacey Roberts
> B. Sc (HONS) Computer Science
> Web:

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
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list