FreeBSD 5.2 How do I let ordinary users mount floppies, CDROMs
and other removable media?
Maxim Konovalov
maxim at macomnet.ru
Mon Jan 31 07:52:15 PST 2005
On Mon, 31 Jan 2005, 16:21+0100, Stan Sorochan wrote:
> Hi everyone!
>
> I am running FreeBSD 5.2 on a PIV machine
>
> What I need to do is let ordinary users mount removable media (CD's,
> floppies, flash cards, digicams, etc)
>
> So I went ahead and done the following steps:
>
> enabled vfs.usermount (i've checked it - after reboot I do this:
> # sysctl -a | grep vfs.usermount
> and get
> vfs.usermount=1
>
> then I've added the following groups to my group file and added myself to
> them:
> usb, floppy, cdrom. their GID's are all above 1001
>
> then I've added the following to my /etc/devfs.conf:
>
> own acd0 root:cdrom
> perm acd0 0660
>
> own fd0 root:floppy
> perm fd0 0660
>
> ****************************************************************
> ***After all of the above I can mount a CD without doing a su***
> ****************************************************************
>
> Then I've created a /etc/devfs.rules and put the following lines into it:
>
> [fetbox_usb=10]
> add path 'da*s*' mode 0660 group usb
>
> and I've added the follwing line to my /etc/rc.conf:
>
> devfs_system_ruleset="fetbox_usb"
>
> so that my rule was loaded at boot time
>
> but I still cannot mount stuff on the USB port.
>
> If I check the permission rights for my da* device, everything seems OK, the
> device gets assigned the correct gid and rights.
>
> What am I missing? How can I make my USB devices accessible without SU???
/dev/xpt0?
--
Maxim Konovalov
More information about the freebsd-fs
mailing list