xsane fails to find scanner

Bug #181129 reported by Richard Kleeman
16
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HAL
Incomplete
Undecided
Unassigned
udev
Incomplete
Undecided
Unassigned
sane-backends (Ubuntu)
New
Undecided
Unassigned

Bug Description

In hardy (1/7/08) xsane reports no scanner as ordinary user. As root the scanner is located. This bug has occurred previously when it was a permissions setting issue generated by udev

Revision history for this message
Richard Kleeman (kleeman) wrote :

The file

/etc/udev/rules.d/45-libsane.rules

which SHOULD be in libsane is missing on my hardy system. This would explain this bug.

Revision history for this message
Richard Kleeman (kleeman) wrote :

I found this in the changelog for sane-backends

* Do not install the udev rules, since hal now provides dynamic ACLs on
    device nodes. (See hardy-hardware-detection spec.)
  * debian/libsane.postinst: Do not create the scanner group.
  * debian/libsane.postinst: Remove obsolete udev rules on upgrade.

So hal should be handling this and isn't at present. Added hal as an affected package

Revision history for this message
der_vegi (m-may) wrote :

Also confirmed here on Hardy amd64 with all updates applied until today. 'sane-find-scanner' does find the scanner, 'scanimage -L' does not. But root can use it. This used to work a couple of weeks ago...

Revision history for this message
Richard Kleeman (kleeman) wrote :

Since there is no longer a scanner group and the file

/etc/udev/rules.d/40-permissions.rules

sets the permissions of /dev/bus/usb (and subdirectories) to be 0664
this means only root (the group now for usb scanners?) can access the device for writing.

If Scott Remnant the maintainer of udev is reading this could he comment on my confusion here ;-) ;-)

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Right, and then HAL should add ACLs to those devices such that console users can use them -- that's probably what's not working here?

Revision history for this message
Richard Kleeman (kleeman) wrote :

Yes it appears so Scott. I am assuming that this part of the new hardy hardware hardware spec is where something is amiss:

"Drop the default system groups plugdev and scanner. Enable ConsoleKit support in hal, which assigns read/write permission to removable USB devices with dynamic ACLs."

Taken from

https://wiki.ubuntu.com/DesktopTeam/Specs/HardyHardwareDetection

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote :

Can you provide the output of "uname -a" to confirm which kernel you're running?

Changed in hal:
status: New → Incomplete
Changed in udev:
status: New → Incomplete
Revision history for this message
Richard Kleeman (kleeman) wrote :

Upgraded to the latest kernel and the problem remains. The 'uname -a' output is:

Linux ubuntu 2.6.24-4-generic #1 SMP Mon Jan 14 18:19:11 UTC 2008 x86_64 GNU/Linux

Revision history for this message
der_vegi (m-may) wrote :

Still present with Linux tux 2.6.24-5-generic #1 SMP Thu Jan 24 19:29:14 UTC 2008 x86_64 GNU/Linux .

Revision history for this message
Clay Weber (claydoh) wrote :

And still present in
2.6.24-7-generic #1 SMP Thu Feb 7 01:29:58 UTC 2008 i686 GNU/Linux

Revision history for this message
mikko (mikko-) wrote :
Revision history for this message
Shaji N V (nvshaji) wrote :

Changing the permissions in :

/etc/udev/rules.d/40-permissions.rules

to 0666 for usb and usb_device and restarting the udev solves the problem, but does it have any side effects?

Revision history for this message
Richard Kleeman (kleeman) wrote :

Yes I have tried the permissions change as well and it works. Two problems: An ordinary
user should not face this. Those permissions may potentially pose a security issue in some situations.

Revision history for this message
Assid (assid) wrote :

Still waiting on this, bug. It seems xsane can find it no problems, but you need to set the permissions via chmod

Any chance this will be fixed?

Revision history for this message
Guillaume (bou-gui) wrote :

Pb is solved on my laptop since a few days, without changing any permissions.

Revision history for this message
canucked (canucked) wrote :

Same problem. Linux 2.6.24-12-generic #1 SMP Wed Mar 12 23:01:54 UTC 2008 i686 GNU/Linux. Using HP Laserjet 3055 printer/scanner.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.