From owner-freebsd-questions@FreeBSD.ORG Wed Aug 25 22:05:11 2004 Return-Path: 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 3938C16A4CE for ; Wed, 25 Aug 2004 22:05:11 +0000 (GMT) Received: from crumpet.united-ware.com (ddsl-66-42-172-210.fuse.net [66.42.172.210]) by mx1.FreeBSD.org (Postfix) with ESMTP id B7E5843D4C for ; Wed, 25 Aug 2004 22:05:10 +0000 (GMT) (envelope-from mistry.7@osu.edu) Received: from [192.168.1.102] (ddsl-66-42-172-210.fuse.net [66.42.172.210]) (authenticated bits=0)i7PLq8jr094535 (version=TLSv1/SSLv3 cipher=RC4-MD5 bits=128 verify=NO); Wed, 25 Aug 2004 17:52:09 -0400 (EDT) (envelope-from mistry.7@osu.edu) From: Anish Mistry To: freebsd-questions@freebsd.org Date: Wed, 25 Aug 2004 18:06:24 -0400 User-Agent: KMail/1.6.2 References: <1093462799.2172.5.camel@server.mcneil.com> In-Reply-To: <1093462799.2172.5.camel@server.mcneil.com> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200408251806.32606.mistry.7@osu.edu> X-Spam-Status: No, hits=-4.3 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,J_CHICKENPOX_21,PGP_SIGNATURE, QUOTED_EMAIL_TEXT,RCVD_IN_ORBS,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_KMAIL version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: Sean McNeil Subject: Re: usb device permissions X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Aug 2004 22:05:11 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 25 August 2004 03:39 pm, Sean McNeil wrote: > Hi, > > I'm using -CURRENT and looking for an easy way to get it to change the > permissions to a usb device when plugged in. I know I can change things > on startup with devfs.conf, but what do I do for usb? > > It is a umass device that creates da0 and da0s. I've tried to put in > usbd.conf > > device "Storage" > device "da.*" > attach "/bin/chmod 0666 /dev/${DEVNAME}" > > but no joy. > > I've also tried a rule for devfs by creating /etc/devfs.rules with > > add path "da*" mode 0666 > > same result. > > Could someone help me figure this one out? > > Thanks, > Sean > /etc/devfs.rules: [system=3D10] add path 'da*' mode 0660 and add the following line to /etc/rc.conf: devfs_system_ruleset=3D"system" =2D --=20 Anish Mistry =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFBLQ1nxqA5ziudZT0RAvMnAJ0Z+8YIuiquqRFJ68Cf+LE9yzw79wCfRO/q 4C0YVFO7XTIKLQJ7Ul2xgG8=3D =3DV9B9 =2D----END PGP SIGNATURE-----