LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 08-19-2009, 07:49 PM   #1
vlsd
LQ Newbie
 
Registered: Aug 2009
Location: Chicago
Distribution: Debian Testing, Arch, Ubuntu 12.04
Posts: 12

Rep: Reputation: 1
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

# ls -l /dev/bus/usb/007/010
crw-rw-r-- 1 lp scanner 189, 777 2009-08-19 19:27 /dev/bus/usb/007/010

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.
 
Old 08-19-2009, 08:44 PM   #2
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
you need to give it permission. in your user group if your a newbe then you must post the system and the desktop manager.
 
Old 08-20-2009, 10:40 AM   #3
vlsd
LQ Newbie
 
Registered: Aug 2009
Location: Chicago
Distribution: Debian Testing, Arch, Ubuntu 12.04
Posts: 12

Original Poster
Rep: Reputation: 1
A restart later and everything works fine. Weird, but not worth investigating any longer.
 
Old 08-20-2009, 12:50 PM   #4
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
A restart later and everything works fine.
Probably all you needed to do was logout and login again for your correct group memberships to take effect. Anyway, problem now solved
 
Old 08-20-2009, 02:20 PM   #5
vlsd
LQ Newbie
 
Registered: Aug 2009
Location: Chicago
Distribution: Debian Testing, Arch, Ubuntu 12.04
Posts: 12

Original Poster
Rep: Reputation: 1
Thumbs up

Quote:
Originally Posted by tredegar View Post
all you needed to do was logout and login again for your correct group memberships to take effect.
Yep, that's exactly what it was. Thanks for pointing it out, it will make a lot more sense next time it happens
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Scanner USB Epson CX-5400 unrecognized by sane 2GNUBY Linux - Hardware 2 10-19-2006 05:38 PM
Sane/Xsane can't find HP scanner Mark_in_Hollywood Linux - Newbie 4 04-19-2006 12:21 AM
libusb not available to sane-find-scanner Simon Bridge Ubuntu 2 10-10-2005 07:14 PM
sane/xsane can't find usb scanner walterbyrd Linux - Hardware 0 07-24-2004 10:39 AM
sane over network - can't find scanner Smerk Linux - Networking 1 07-18-2004 03:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:20 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration