scanimage -L doesn't work as normal user

Marc Fonvieille blackend at freebsd.org
Sat Jul 30 14:13:06 GMT 2005


On Sat, Jul 30, 2005 at 03:42:54PM +0200, Erik Nørgaard wrote:
> On Sat, 30 Jul 2005, Marc Fonvieille wrote:
> 
> > On Sat, Jul 30, 2005 at 01:41:20PM +0200, Erik Nørgaard wrote:
> >
> > Wrong perms on ugen0, read carefully:
> > 7.6.4 Allowing Scanner Access to Other Users
> > if you want ugen0 appears with the right permissions once you plug your
> > scanner.  The current devfs scheme you use (Cf. your previous mail)
> > should work if you boot directly with your scanner plugged and not if
> > you plug it later.
> 
> According to the man-pages, this should be solved by adding the
> folowing rules to /etc/devfs.rules:
> 
> # Allow any user to access uscanner and ugen devices rw
> add path 'usb0'      mode 0666
> add path 'ugen*'     mode 0666
> add path 'uscanner*' mode 0666
> 

you should add a ruleset line before your lines.

> I restarted devfs but the devices were created with the wrong
> permissions when I plugged in the scanner?
> 

I don't understand the "?"

> If I restart devfs after plugging in the scanner permissions are
> corrected. But I think this is rather annoying - is this intended?
>  no problem report has been filed on this issue...
[...]

I think it's a ruleset issue as I said above.  Another thing devfs.rules
is for pluggable devices, devfs.conf for devices present at boot time.

Marc


More information about the freebsd-questions mailing list