Re: is there a knob for devfs rules?

2003-09-01 Thread Jeff Walters
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

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a knob for devfs rules?

2003-09-01 Thread Scot W. Hetzel
From: John Reynolds [EMAIL PROTECTED]
 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/local/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

You would need to add the following to /etc/devfs.rules:

[devfsrules_ugen=50]
add path 'ugen*' mode 664

Then add to /etc/rc.conf:

devfs_system_ruleset=devfsrules_ugen

Scot

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: is there a knob for devfs rules?

2003-09-01 Thread John Reynolds

[ On Monday, September 1, Scot W. Hetzel wrote: ]
 From: John Reynolds [EMAIL PROTECTED]
 I
 http://www.freebsd.org/cgi/getmsg.cgi?fetch=1203173+1206388+/usr/local/www/db/text/2003/freebsd-questions/20030622.freebsd-questions
 You would need to add the following to /etc/devfs.rules:
 
 [devfsrules_ugen=50]
 add path 'ugen*' mode 664
 
 Then add to /etc/rc.conf:
 
 devfs_system_ruleset=devfsrules_ugen
 
 Scot

Thanks! This is what another person has suggested, but just for the archives,
this is for a recent -current (as I don't have this particular knob that
the rc files recognize yet). At least more recent than Aug 19th.

Thanks again for the pointer. I will CVSup and re-install today! 

-Jr

-- 
John  Jennifer Reynolds  johnjen at reynoldsnet.orgwww.reynoldsnet.org
Sr. Physical Design Engineer - WCCG/CCE PDE jreynold at sedona.ch.intel.com
Running FreeBSD since 2.1.5-RELEASE.   FreeBSD: The Power to Serve!
Unix is user friendly, it's just particular about the friends it chooses.
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to [EMAIL PROTECTED]