usb scanner premissions issue when running sane-find-scanner
Linux - HardwareThis forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
usb scanner premissions issue when running sane-find-scanner
I have an HP Photosmart C4200 series USB scanner that I'm trying to get working under Debian Lenny. Running things as root works, this is the output:
# sane-find-scanner
found USB scanner (vendor=0x03f0 [HP], product=0x5c11 [Photosmart C4200 series]) at libusb:007:010
# scanimage -L
device `hpaio:/usb/Photosmart_C4200_series?serial=CN82IR300K04VP' is a Hewlett-Packard Photosmart_C4200_series all-in-one
However, running things as a regular user gives me:
$ sane-find-scanner
found USB scanner (vendor=0x03f0, product=0x5c11) at libusb:007:010
$ scanimage -L
No scanners were identified. If you were expecting something different,
check that the scanner is plugged in, turned on and detected by the
sane-find-scanner tool (if appropriate). Please read the documentation
which came with this software (README, FAQ, manpages).
Notice that sane-find-scanner does not print the and manufacturer of the scanner when called by the user. At first it seems like it's not a permissions issue, since my user is a member of the scanner group, and an ls on the device gives
so members of the scanner group should have rw access. However, after a quick chmod a+w of the same file, sane-find-scanner works perfectly when called by the user.
Of course, I could just chmod the device every time I need to use the scanner, or even write some script that does that for me. However, I would like to know what it is that makes permissions not work like they are supposed to. A lot of documentation talks about how to modify udev configuration files to get the permissions on the device the way you want them, but the permissions on the device ARE the way I want them, it's just that sane-find-scanner seems to ignore the group of the user who runs it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.