Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jan 2006 17:11:11 +0100
From:      Stefan =?iso-8859-1?Q?E=DFer?= <se@FreeBSD.org>
To:        Arne Woerner <arne_woerner@yahoo.com>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: xsane as user
Message-ID:  <20060107161111.GA42739@StefanEsser.FreeBSD.org>
In-Reply-To: <20060107134355.85605.qmail@web30307.mail.mud.yahoo.com>
References:  <Pine.GSO.4.21.0601071330490.21703-100000@babbage.bham.ac.uk> <20060107134355.85605.qmail@web30307.mail.mud.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2006-01-07 05:43 -0800, Arne Woerner <arne_woerner@yahoo.com> wrote:
> U can do that automatically via the devd.conf(5) and
> devfs.conf(5).
> 
> % cat /etc/devfs.conf 
> perm uscanner0 0664

Hmmm, why 0664?

Either grant access to anybody or RW-Access to owner and group
(root:operator).

perm	uscanner0	660

> % cat /etc/devd.conf 
> options {
>         pid-file "/var/run/devd.pid";
> };
> attach 10 {
>         device-name "uscanner0";
>         action "/etc/rc.d/devfs start";
> };

Interesting idea to apply devfs rules from devd ...

But the following does work as well and is a less heavy weight
solution:

# The entry below grants group operator access when a scanner is plugged in.
attach 100 {
	device-name "uscanner[0-9]+";
	action "chmod 660 /dev/$device-name";
};


In fact, the default permissions of uscanner devices might be too strict
and the best fix might be to have the mode default to 0660 (root:operator).

Regards, STefan



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