Bug 444316

Summary: Only users in group lp can access scanner
Product: [openSUSE] openSUSE 11.1 Reporter: Forgotten User XG9X5w8kVa <forgotten_XG9X5w8kVa>
Component: HotplugAssignee: Johannes Meixner <jsmeix>
Status: VERIFIED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None    
Version: Beta 4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Forgotten User XG9X5w8kVa 2008-11-12 18:42:43 UTC
After installing an usb scanner, I can't scan; the device is owned by root:lp with permisions 660, and users aren't added by default to lp group, nor it is documented in yast2 scanner module help:

prueba@linux-gzqa:~> lsusb
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 004: ID 04b8:010c Seiko Epson Corp. Perfection 640
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
prueba@linux:~> scanimage -L
device `epkowa:libusb:001:004' is a Epson Perfection 640 flatbed scanner
prueba@linux~> xsane
libusb couldn't open USB device /dev/bus/usb/001/004: Permission denied.
libusb requires write access to USB device nodes.
prueba@linux:~> l /dev/bus/usb/001
total 0
drwxr-xr-x 2 root root     80 nov 12 19:21 ./
drwxr-xr-x 5 root root    100 nov 12  2008 ../
crw-r--r-- 1 root root 189, 0 nov 12 19:22 001
crw-rw-r-- 1 root lp   189, 3 nov 12 19:36 004

This behaviour is different from previous opensuse releases.
Is that intended?
Comment 1 Robert Vojcik 2008-11-14 00:41:18 UTC
Hello, 

it's OK. It is goot if you have control which user can use your HW (printer, scanner, etc.). If you want to permit scanner for some users you can add them to lp group.

But yast2 could notify that you must add user to group if you want to scan or print something.

I reassign it to maintainer.
Comment 2 Johannes Meixner 2008-11-14 08:22:52 UTC
The scanner with USB IDs 04b8:010c is listed in
/etc/udev/rules.d/55-libsane.rules
and in
/etc/hal/fdi/policy/10osvendor/70-scanner.fdi
and in
/etc/udev/rules.d/56-sane-backends-autoconfig.rules
Those files are ready-made installed by the packages
sane-backends and sane-backends-autoconfig.

Therefore everything is correctly installed for
the udev/HAL/hal-resmgr machinery and for
automated scanner setup so that everything
is correctly preset out-of-the-box for a happy
nice user-friendly plug-and-play experience
(or for whatever they say that it is ;-)

I assume your scanner was set up full automated
as described in bug #347943 so that in your case
you might got the problem described in
https://bugzilla.novell.com/show_bug.cgi?id=340173#c5

See the section "Background information" in
https://bugzilla.novell.com/show_bug.cgi?id=438867#c3

*** This bug has been marked as a duplicate of bug 438867 ***
Comment 3 Alexander Orlovskyy 2008-11-14 08:42:35 UTC
Closing bug.