Date: Wed, 9 Nov 2005 08:41:34 +1030 From: "Daniel O'Connor" <doconnor@gsoft.com.au> To: freebsd-stable@freebsd.org Cc: Andy Fraser <andyfraser@gmail.com> Subject: Re: USB Card Reader Permissions Message-ID: <200511090841.36177.doconnor@gsoft.com.au> In-Reply-To: <200511082054.42113.andyfraser@gmail.com> References: <200511082054.42113.andyfraser@gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--nextPart3875631.iRlUIj6YaO Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, 9 Nov 2005 07:24, Andy Fraser wrote: > I was wondering if someone could tell me how to set the permissions for a > USB card reader when it's plugged in? I've been Googling for hours and > found nothing concrete so far although I'll keep looking. devfs.conf can do it. > So far I have this situation: > I plug in the card reader and device nodes are created > (e.g. /dev/da0s1, /dev/da1s1 etc). I can mount this as root and if I > manually set the permissions I can mount it as my user too. What I can't > work out is how to change the permissions when I plug it in so I can just > use the reader as my user. [inchoate 8:36] ~ >cat /etc/devfs.rules [root=3D100] add path 'da*' group operator mode 660 And in rc.conf.. devfs_system_ruleset=3D"root" > I've read the man pages for devfs, devfs.conf and devfs.rules. devfs.rules > looks like what I need but I can't work out what I actually need to do or > how to test a rule without rebooting. It isn't very obvious :( You can test your changes by doing.. /etc/rc.d/devfs restart =2D-=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C --nextPart3875631.iRlUIj6YaO Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDcSKY5ZPcIHs/zowRAln7AKCih+PU8uQxpCk3kwZfgZQthaFs9wCgnRey DtExhbayjLaGPTSu92LgBnk= =FqyO -----END PGP SIGNATURE----- --nextPart3875631.iRlUIj6YaO--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511090841.36177.doconnor>