device permission in devfs.conf not working.
Julien Gabel
jpeg at thilelli.net
Sun Oct 2 11:04:53 PDT 2005
> Hi,
>
> I want to be able to use usb drives as a normal user so I added the line :
>
> perm da0 0777
> in /etc/devfs.conf
>
> But when I plug in the device, da0 and da0s1 is created with default
> permission :
>
> [nicblais] /dev> ll da*
> crw-r----- 1 root operator 0, 148 Oct 2 13:53 da0
> crw-r----- 1 root operator 0, 149 Oct 2 13:53 da0s1
>
> Although I can mount it fine as root, I have to chmod 777 to make it work
> for
> other users.
>
> [nicblais] /dev# chmod 777 da0*
> [nicblais] /dev# ll da*
> crwxrwxrwx 1 root operator 0, 148 Oct 2 13:53 da0*
> crwxrwxrwx 1 root operator 0, 149 Oct 2 13:53 da0s1*
>
> I'm assuming it would work if I left the usb drive plugged in while
> booting
> but that kinda defeats the purpose of a portable storage media.
> Is my entry in /etc/devfs.conf not correct?
The correct way to do things with pluggable devices is to use the
devfs.rules(5) configuration file.
--
-jpeg.
More information about the freebsd-questions
mailing list