From owner-freebsd-stable@FreeBSD.ORG Tue Nov 8 22:12:08 2005 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1AA3716A41F for ; Tue, 8 Nov 2005 22:12:08 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from ash25e.internode.on.net (ash25e.internode.on.net [203.16.214.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1B77143D6A for ; Tue, 8 Nov 2005 22:11:55 +0000 (GMT) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp133-212.lns2.adl2.internode.on.net [59.167.133.212]) by ash25e.internode.on.net (8.12.9/8.12.6) with ESMTP id jA8MBrFi061033; Wed, 9 Nov 2005 08:41:53 +1030 (CST) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.dons.net.au (inchoate.dons.net.au [10.0.2.99]) (authenticated bits=0) by midget.dons.net.au (8.13.4/8.13.3) with ESMTP id jA8MBbFD080089 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 9 Nov 2005 08:41:37 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-stable@freebsd.org Date: Wed, 9 Nov 2005 08:41:34 +1030 User-Agent: KMail/1.8.2 References: <200511082054.42113.andyfraser@gmail.com> In-Reply-To: <200511082054.42113.andyfraser@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart3875631.iRlUIj6YaO"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200511090841.36177.doconnor@gsoft.com.au> X-Spam-Score: 0 () X-Scanned-By: MIMEDefang 2.52 on 10.0.2.7 Cc: Andy Fraser Subject: Re: USB Card Reader Permissions X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2005 22:12:08 -0000 --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--