xsane as user

Stefan Eßer se at FreeBSD.org
Sat Jan 7 08:11:17 PST 2006


On 2006-01-07 05:43 -0800, Arne Woerner <arne_woerner at 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


More information about the freebsd-multimedia mailing list