Date: Wed, 25 Aug 2004 16:20:39 -0700 From: Sean McNeil <sean@mcneil.com> To: Anish Mistry <mistry.7@osu.edu> Cc: freebsd-questions@freebsd.org Subject: Re: usb device permissions Message-ID: <1093476039.31251.0.camel@server.mcneil.com> In-Reply-To: <200408251806.32606.mistry.7@osu.edu> References: <1093462799.2172.5.camel@server.mcneil.com> <200408251806.32606.mistry.7@osu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 2004-08-25 at 15:06, Anish Mistry wrote: > 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=10] > add path 'da*' mode 0660 > > and add the following line to /etc/rc.conf: > devfs_system_ruleset="system" Perfect. Thanks for the quick solution. Sean
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1093476039.31251.0.camel>