From owner-freebsd-questions@FreeBSD.ORG Sat Dec 10 15:31:49 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78A0616A41F for ; Sat, 10 Dec 2005 15:31:49 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from smtp-vbr10.xs4all.nl (smtp-vbr10.xs4all.nl [194.109.24.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9539943D62 for ; Sat, 10 Dec 2005 15:31:48 +0000 (GMT) (envelope-from rsmith@xs4all.nl) Received: from slackbox.xs4all.nl (slackbox.xs4all.nl [213.84.242.160]) by smtp-vbr10.xs4all.nl (8.13.3/8.13.3) with ESMTP id jBAFVYLr044023; Sat, 10 Dec 2005 16:31:34 +0100 (CET) (envelope-from rsmith@xs4all.nl) Received: by slackbox.xs4all.nl (Postfix, from userid 1001) id EE513B820; Sat, 10 Dec 2005 16:31:33 +0100 (CET) Date: Sat, 10 Dec 2005 16:31:33 +0100 From: Roland Smith To: Wojciech Puchar Message-ID: <20051210153133.GA67286@slackbox.xs4all.nl> Mail-Followup-To: Wojciech Puchar , freebsd-questions@freebsd.org References: <20051210160006.V33827@chylonia.3miasto.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IS0zKkzwUGydFO0o" Content-Disposition: inline In-Reply-To: <20051210160006.V33827@chylonia.3miasto.net> User-Agent: Mutt/1.4.2.1i 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! X-Virus-Scanned: by XS4ALL Virus Scanner Cc: freebsd-questions@freebsd.org Subject: Re: devd.conf question 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: Sat, 10 Dec 2005 15:31:49 -0000 --IS0zKkzwUGydFO0o Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Dec 10, 2005 at 04:01:03PM +0100, Wojciech Puchar wrote: > attach 0 { > device-name "da[0-9]+"; > action "/usr/sbin/chown root:umass $device-name;chmod 660=20 > $device-name"; > }; >=20 > after inserting USB DataTraveller this action isn't performed and i=20 > still needs to be root to access it. Such things are better handled in /etc/devfs.rules. Put the following ruleset in /etc/devfs.rules: [localrules=3D10] add path 'da*s*' mode 0660 group usb And activate the ruleset in /etc/rc.conf devfs_system_ruleset=3D"localrules" Of course, you can choose any ruleset label instead of "localrules". Roland --=20 R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text. public key: http://www.xs4all.nl/~rsmith/pubkey.txt --IS0zKkzwUGydFO0o Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDmvTVEnfvsMMhpyURAuyqAJ9adEk6gIdXBjPhnwft99zCooANNACeKszY lbybAj4g99EBdyC5X+i/J1Q= =EWf7 -----END PGP SIGNATURE----- --IS0zKkzwUGydFO0o--