Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Aug 2003 02:37:27 -0400
From:      Mike Makonnen <mtm@identd.net>
To:        src-committers@FreeBSD.org
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/etc rc.subr src/etc/defaults Makefile devfs.rules rc.conf src/etc/rc.d devfs
Message-ID:  <20030820063727.GA1074@kokeb.ambesa.net>
In-Reply-To: <200308200615.h7K6FJ7S025143@repoman.freebsd.org>
References:  <200308200615.h7K6FJ7S025143@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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@kokeb ~% grep devfs /etc/rc.conf
devfs_system_ruleset="devfsrules_nosudo"

mtm@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@identd.net | Fingerprint: 00E8 61BC 0D75 7FFB E4D3  6BF1 B239 D010 3215 D418
mtm@FreeBSD.Org| FreeBSD - Unleash the Daemon !



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030820063727.GA1074>