From owner-freebsd-current@FreeBSD.ORG Mon Sep 1 05:34:26 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 98BE716A4C0 for ; Mon, 1 Sep 2003 05:34:26 -0700 (PDT) Received: from c001.snv.cp.net (h001.c001.snv.cp.net [209.228.32.115]) by mx1.FreeBSD.org (Postfix) with SMTP id CFBD243FA3 for ; Mon, 1 Sep 2003 05:34:23 -0700 (PDT) (envelope-from jeff@walters.name) Received: (cpmta 22231 invoked from network); 1 Sep 2003 05:34:23 -0700 Received: from 68.59.45.70 (HELO wolfpack.localdomain) by smtp.register-admin.com (209.228.32.115) with SMTP; 1 Sep 2003 05:34:23 -0700 X-Sent: 1 Sep 2003 12:34:23 GMT From: Jeff Walters To: John Reynolds Date: Mon, 1 Sep 2003 08:34:24 -0400 User-Agent: KMail/1.5.3 References: <16210.45686.750487.40979@whale.home-net> In-Reply-To: <16210.45686.750487.40979@whale.home-net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200309010834.24508.jeff@walters.name> cc: current@freebsd.org Subject: Re: is there a "knob" for devfs rules? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: jeff@walters.name List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Sep 2003 12:34:26 -0000 Check out the header comments in the recently created /etc/defaults/devfs.rules and the new rc.conf variable devfs_system_ruleset. In your case below, you'd probably need an /etc/devfs.rules like: # Create local ruleset [local_ruleset=10] add path 'ugen*' mode 664 And then you'd add the following line to /etc/rc.conf: devfs_system_ruleset="local_ruleset" On Sunday 31 August 2003 10:44 pm, John Reynolds wrote: > Hi all, in debugging /dev/usb* and /dev/ugen* permissions problems > so that I could access my digital camera as a mere-mortal user, I > came across this posting to -questions: > > > http://www.freebsd.org/cgi/getmsg.cgi?fetch=1203173+1206388+/usr/lo >cal/www/db/text/2003/freebsd-questions/20030622.freebsd-questions > > Indeed what Jesse posted worked like a charm: > > devfs ruleset 10 > devfs rule add path 'ugen*' mode 664 > > Since the ugen* devices are "dynamic," putting entries in > /etc/devfs.conf doesn't work unless you "restart" devfs once the > camera is turned on. Thus, the rule above works nicely. > > He had asked in the mail where the "appropriate" place for these > commands should be, but the thread ended there. So, I pose the > question to this list. I didn't see anything in > /etc/defaults/rc.conf regarding devfs. > > So, would the "appropriate" thing be to create a .sh file in > /usr/local/etc/rc.d which contained the rule commands one would > want and just have them be applied via this mechanism once it was > very clear that devfs was up and running, etc.? > > Thanks, > > -Jr