From owner-freebsd-questions@FreeBSD.ORG Thu May 22 22:42:01 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 88061106566B for ; Thu, 22 May 2008 22:42:01 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr13.xs4all.nl (smtp-vbr13.xs4all.nl [194.109.24.33]) by mx1.freebsd.org (Postfix) with ESMTP id 1AAA48FC1A for ; Thu, 22 May 2008 22:42:00 +0000 (UTC) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr13.xs4all.nl (8.13.8/8.13.8) with ESMTP id m4MMfxlm077632; Fri, 23 May 2008 00:41:59 +0200 (CEST) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id DAD41BAAB; Fri, 23 May 2008 00:41:58 +0200 (CEST) Date: Fri, 23 May 2008 00:41:58 +0200 From: Roland Smith To: =?iso-8859-15?Q?S=E9bastien?= Morand Message-ID: <20080522224158.GA87230@slackbox.xs4all.nl> Mail-Followup-To: =?iso-8859-15?Q?S=E9bastien?= Morand , freebsd-questions@freebsd.org References: <4835E523.2090304@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IJpNTDwzlM2Ie8A6" Content-Disposition: inline In-Reply-To: <4835E523.2090304@gmail.com> X-GPG-Fingerprint: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 X-GPG-Key: http://www.xs4all.nl/~rsmith/pubkey.txt X-GPG-Notice: If this message is not signed, don't assume I sent it! User-Agent: Mutt/1.5.17 (2007-11-01) X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: devfs and scanner X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 May 2008 22:42:01 -0000 --IJpNTDwzlM2Ie8A6 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, May 22, 2008 at 09:26:59PM +0000, S=E9bastien Morand wrote: > Hi >=20 > a would like to up my scanner automatically ofr regular user, so I create= =20 > theses lines in devfs.conf: > link uscanner0 scanner > perm uscanner0 0660 > own uscanner0 root:scanner >=20 > I create the group scanner and add the user in it, but it doesn't work.= =20 > When I plug the scanner I get: > $ ls -l /dev/uscanner0 > crw-r--r-- 1 root operator 0, 124 May 22 21:25 /dev/uscanner0 >=20 > And what I would like is: > crw-rw-r-- 1 root scanner 0, 124 May 22 21:25 /dev/uscanner0 >=20 > How can I achieve this? Devfs.conf only deals with devices available at boot. For hotpluggable devices like USB, use devfs.rules. See the devfs.rules manual page. Roland --=20 R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) --IJpNTDwzlM2Ie8A6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (FreeBSD) iEYEARECAAYFAkg19rYACgkQEnfvsMMhpyVl+wCfeuo3pkmb3iOk8o+tNnga0jdv PpAAnRQgQBPN7dBnC6qgHkX7W4/S7pbL =UkKR -----END PGP SIGNATURE----- --IJpNTDwzlM2Ie8A6--