Stan Sorochan | 3 Feb 2005 23:02
Picon

Re: FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs and other removablemedia?'

Yes!!!  It's been figured out!

Thanks to great advice in this mailing list!  Many many thanks to those who 
spent their time to write!

So to recap!  In order to be able to mount removable media without su on 
FreeBSD 5.X this has to be done:

vfs.usermount=1

is to be put into /etc/sysctl.conf

The following lines are to be added to /etc/devfs.conf:

# Allow members of cdrom to mount the ide cdrom
own     acd0    root:cdrom
perm    acd0    0660

# Allow members of floppy group to mount fd
own     fd0     root:floppy
perm    fd0     0660

The follwing lines are to be added to /etc/devfs.rules:

[userbox_usb=10]
add path 'da*' mode 0660 group usb
#more of the usb devices are to be added here (scanners, digicams, etc)

The following line is to be added to /etc/rc.conf so that the rules are 
loaded:
(Continue reading)


Gmane