[sane-devel] User permissions

Bertrik Sikken bertrik at zonnet.nl
Sat Oct 8 08:54:18 UTC 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Michael Irons wrote:
> On Sat October 8 2005 12:12 am, Dieter Jurzitza wrote:
> 
>>grep "scanner" /etc/group
> 
> 
> gives me
> 
> scanner:x:440:michael,root
> 
> I am in the group.
> 
> I am thinking it has something to do with:
> 
> sane-find-scanner -v
> 
> checking /dev/usb/scanner... failed to open (Invalid argument)
> checking /dev/usb/scanner0... failed to open (Invalid argument)

No, /dev/usb/scanner no longer exists in kernel 2.6.

It has to do with permissions of the files in /proc/bus/usb
provided by usbfs and used by libusb. By default, these files
have limited permission and usually a hotplug script is used
to update the permission when the scanner is plugged in.
(and ofcourse usbfs needs to be mounted first)

You need to have some hotplug script in /etc/hotplug/usb.
There are examples of the required files in the sane-backends
source packages (directory tools), but I don't know whether
you need the hotplug scripts or the hotplug-ng script.

Kind regards,
Bertrik
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDR4k6ETD6mlrWxPURAlhEAJ0Q+VPAH+wN1LLjtlBQl3EFvmqaPQCfauoA
o560ROmJabW3xgPqt7n6Zew=
=X2nk
-----END PGP SIGNATURE-----



More information about the sane-devel mailing list