[PINGUIN] Rechte für den saned User setzen - sane als daemon

Sebastian Dellit sebo at blindzeln.de
Di Feb 6 11:50:28 CET 2007


Hoppa Pinguin Leser und Leserinnen,

ich arbeite gerade das Howto durch, welches die Aktivierung des saned
beschreibt. An einer Stelle häng ich gerade:

If your saned and/or tcpd binary are installed somewhere else you have to supply the correct paths. Furthermore, you have to make sure user and group saned
exist and they have appropriate access rights to your SCSI, parallel port, and USB devices. If your scanner is attached to /dev/sga for example, you can
set the access rights like this:
        # chown root:saned /dev/sga && chmod g+rw /dev/sga

Examples for USB devices would be /dev/usbscanner or /dev/usb/scanner0, parallel port scanners are connected for example to /dev/parport0. Note that you
don't may not have those devices for your USB scanner if you are using libusb instead of the kernel module (libusb is the recommended access method). If
you are using libusb, you may want to setup hotplug to set the correct access rights. See the sane-usb man page for further details about USB device access
rights.

To test whether the access rights are set correctly, you should try whether user saned can access the scanner:
        # su -s /bin/sh - saned
$ scanimage -L

Hier steht u. A., das bei der Verwendung von libusb die Rechte
anderst, nämlich über hotplug, vergeben werden. Ich habe udev
installiert, das ist aber IMHO kein hotplug selbst.

Wie kann ich die nötigen Rechte mit hotplug setzen?

Wenn ich scanimage -L eingebe, kommt folgendes (das ist der Grund,
warum ich denke, das ich die Rechte nicht mit chown und chmod vergeben
soll):

device `plustek:libusb:003:005' is a Canon N650U/N656U USB flatbed scanner

Danke und
-- 
Viele Grüße Sebastian
ICQ: 264706583 | MSM: sebo at blinzeln.de | Skype: sebo_de
E-Mail: sebo at blindzeln.de | Web: www.blindzeln.de