cvs commit: src/etc rc.subr src/etc/defaults Makefile devfs.rules rc.conf src/etc/rc.d devfs

Mike Makonnen mtm at identd.net
Tue Aug 19 23:37:33 PDT 2003


On Tue, Aug 19, 2003 at 11:15:19PM -0700, Mike Makonnen wrote:
> mtm         2003/08/19 23:15:19 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     etc                  rc.subr 
>     etc/defaults         Makefile rc.conf 
>     etc/rc.d             devfs 
>   Added files:
>     etc/defaults         devfs.rules 
>   Log:
>   Add a general mechanism for creating and applying
>   devfs(8) rules in rc(8). It is most useful for applying
>   rules to devfs(5) mount points in /dev or inside jails.

Before someone mentions it: yes, I am working on the man pages :-)

For the impatient:
There are some things I do often enough on my desktop
that require root privilages that using sudo becomes tedious.
Some examples are burning CDs or using tcpdump(1), so this
was a quick solution:

mtm at kokeb ~% grep devfs /etc/rc.conf
devfs_system_ruleset="devfsrules_nosudo"

mtm at kokeb ~% cat /etc/devfs.rules
[devfsrules_nosudo=500]
add path 'bpf*' mode 660
add path 'acd*' mode 664
add path 'cd*' mode 664
add path 'xpt*' mode 660
add path 'pass*' mode 660

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm at identd.net | Fingerprint: 00E8 61BC 0D75 7FFB E4D3  6BF1 B239 D010 3215 D418
mtm at FreeBSD.Org| FreeBSD - Unleash the Daemon !


More information about the cvs-src mailing list