$ getfacl /dev/bus/usb/001/004
getfacl: Removing leading '/' from absolute path names
# file: dev/bus/usb/001/004
# owner: root
# group: lp
user::rw-
group::rw-
other::r--

That reminds me of an alternative way:

sudo chmod o+w /dev/bus/usb/001/004

The problem with that (if I remember correctly) is that the position of
the scanner may change if other USB devices are added or removed. And
it's still not working out of the box.

I don't seem able to scan using scanimage, whether I'm in the lp group
or not or irrespective of file permissions. (Not sure about the proper
syntax, though.)

$ scanimage -d brother2:bus4 --format=png --verbose >testimage.png
scanimage: open of device brother2:bus4 failed: Invalid argument
$ scanimage -d 'brother2:bus4;dev3' --format=png --verbose >testimage.png
scanimage: open of device brother2:bus4;dev3 failed: Invalid argument
$ scanimage -d brother2:/dev/bus/usb/001/004 --format=png --verbose 
>testimage.png
scanimage: open of device brother2:/dev/bus/usb/001/004 failed: Invalid argument

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1890464

Title:
  Can not scan as user

Status in sane-backends package in Ubuntu:
  Confirmed

Bug description:
  # Description

  I can not scan as user using software like simple-scan or xsane.
  If I run xsane and simple-scan with sudo, I can use my scanner.

  It seems to be a permission issue

  # Step to reproduce
   
  1. Start xsane or simple-scan as user
  2. xsane and simple-scan fail to scan, "device is not connected"
  3. Start xsane or simple-scan with sudo
  4. It works, you can scan

  # Infos

  xubuntu 20.04
  HP Deskjet 2540 All-in-One Printer

  antoine@Talos:~$ apt show sane-utils
  Package: sane-utils
  Version: 1.0.29-0ubuntu5

  
  antoine@Talos:~$ apt show libsane
  Package: libsane
  Version: 1.0.29-0ubuntu5

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1890464/+subscriptions


-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to