List Info

Thread: device permission in devfs.conf not working




device permission in devfs.conf not working
user name
2005-10-02 18:07:21

Nicolas Blais wrote:
> 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?
> 
> Any help appreciated,
> Nicolas.

Add a something like this to devfs.rules
[system=10]
add path 'da*' mode 0660 group media

Here I relax access to just the media group, but you could
obviously 
just use something like "add path 'da*' mode
0777".

Micah
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
device permission in devfs.conf not working
user name
2005-10-02 18:12:08
On October 2, 2005 02:07 pm, Micah wrote:
> Nicolas Blais wrote:
> > 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?
> >
> > Any help appreciated,
> > Nicolas.
>
> Add a something like this to devfs.rules
> [system=10]
> add path 'da*' mode 0660 group media
>
> Here I relax access to just the media group, but you
could obviously
> just use something like "add path 'da*' mode
0777".
>
> Micah

Thanks that worked!
-- 
FreeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005     
rootclk01a:/usr/obj/usr/src/sys/CLK01A 
PGP? : http:/
/66.130.198.54:8081/security/nb_root.asc
device permission in devfs.conf not working
user name
2005-10-02 19:29:36
Micah wrote:

> Add a something like this to devfs.rules
> [system=10]
> add path 'da*' mode 0660 group media
> 
> Here I relax access to just the media group, but you
could obviously 
> just use something like "add path 'da*' mode
0777".

Interesting. This might solve the same problem which I'm
having with a 
zip drive.
Where do I get more info on this? I found some no releant
man page on a 5.4.

  bye & Thanks
	av.
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
device permission in devfs.conf not working
user name
2005-10-02 20:03:47
Andrea Venturoli <ml.diespammernetfence.it> writes:

> Micah wrote:
> 
> > Add a something like this to devfs.rules
> > [system=10]
> > add path 'da*' mode 0660 group media
> > Here I relax access to just the media group, but
you could obviously
> > just use something like "add path 'da*' mode
0777".
> 
> Interesting. This might solve the same problem which
I'm having with a
> zip drive.
> Where do I get more info on this? I found some no
releant man page on a 5.4.

http://www.fr
eebsd.org/cgi/man.cgi?query=devfs.rules&manpath=FreeBSD+
5.4-stable&format=html

[Although the format is right out of devfs(8), anyway.]
_______________________________________________
freebsd-questionsfreebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-que
stions
To unsubscribe, send any mail to
"freebsd-questions-unsubscribefreebsd.org"
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )