Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Oct 2005 14:01:57 -0400
From:      Nicolas Blais <nb_root@videotron.ca>
To:        freebsd-questions@freebsd.org
Subject:   device permission in devfs.conf not working
Message-ID:  <200510021402.03282.nb_root@videotron.ca>

next in thread | raw e-mail | index | archive | help
--nextPart2752695.tHEY6Mcu5O
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

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=20
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 f=
or=20
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=
=20
but that kinda defeats the purpose of a portable storage media.
Is my entry in /etc/devfs.conf not correct?

Any help appreciated,
Nicolas.
=2D-=20
=46reeBSD 7.0-CURRENT #0: Sat Oct  1 11:51:38 EDT 2005    =20
root@clk01a:/usr/obj/usr/src/sys/CLK01A=20
PGP? : http://66.130.198.54:8081/security/nb_root.asc

--nextPart2752695.tHEY6Mcu5O
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (FreeBSD)

iD8DBQBDQCCbz38ton5LGeIRAqouAKCew2YJOWDzx8cS9Hz89wPrukfdJQCgpRLU
oi6J76VUw7TJToB+Vkn8hj4=
=KQ/I
-----END PGP SIGNATURE-----

--nextPart2752695.tHEY6Mcu5O--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200510021402.03282.nb_root>