devd.conf question
Roland Smith
rsmith at xs4all.nl
Sat Dec 10 07:31:49 PST 2005
On Sat, Dec 10, 2005 at 04:01:03PM +0100, Wojciech Puchar wrote:
<snip>
> attach 0 {
> device-name "da[0-9]+";
> action "/usr/sbin/chown root:umass $device-name;chmod 660
> $device-name";
> };
>
> after inserting USB DataTraveller this action isn't performed and i
> still needs to be root to access it.
Such things are better handled in /etc/devfs.rules. Put the following
ruleset in /etc/devfs.rules:
[localrules=10]
add path 'da*s*' mode 0660 group usb
And activate the ruleset in /etc/rc.conf
devfs_system_ruleset="localrules"
Of course, you can choose any ruleset label instead of "localrules".
Roland
--
R.F.Smith (http://www.xs4all.nl/~rsmith/) Please send e-mail as plain text.
public key: http://www.xs4all.nl/~rsmith/pubkey.txt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20051210/37dc3f04/attachment.bin
More information about the freebsd-questions
mailing list