Comment 24 for bug 773617

Revision history for this message
Matti Viljanen (direc85) wrote :

This is still an issue in 12.04.

In order to have scanbuttond (and saned, should I need it in the future) run as user saned, I had to add udev rule:

99-libsane.rules
ENV{libsane_matched}=="yes", OWNER="saned", GROUP="scanner"

Before the rule:
# file: dev/bus/usb/001/005
# owner: root
# group: root
user::rw-
group::rw-
group:scanner:rw-
mask::rw-
other::r--

After the rule:
# file: dev/bus/usb/001/006
# owner: saned
# group: scanner
user::rw-
group::rw-
group:scanner:rw-
mask::rw-
other::r--

Now scanbuttond works as expected.

I'm tired of banging my head against this now that it works, so could please somebody test the following things:
- Does the group 'saned' exist after fresh install and after installing 'sane'
- Does the group 'scanner' exist after fresh install and after installing 'sane'
- Does the user 'saned' belong to group 'scanner'

Footnote: Should user 'saned' also belong to group 'lp' in order to print using scanbuttond's buttonpressed.sh script?