LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Grafpup
User Name
Password
Grafpup This forum is for the discussion of Grafpup Linux.

Notices


Reply
  Search this Thread
Old 06-27-2007, 04:13 PM   #1
gamfa
LQ Newbie
 
Registered: May 2003
Posts: 29

Rep: Reputation: 15
User can't scan...


It appears that there might be a permissions problem here. When root runs "sane-find-scanner", sane can pick the proper backend but when a regular user runs the same command, it can't locate the backend.

sane-find scanner by root...

Quote:
found USB scanner (vendor=0x1199, product=0x6820) at libusb:005:002
found USB scanner (vendor=0x04b8 [EPSON], product=0x010f [EPSON Scanner 010F], chip=LM9832/3) at libusb:002:002
as user...

Quote:
found USB scanner (vendor=0x1199, product=0x6820) at libusb:005:002
found USB scanner (vendor=0x04b8, product=0x010f, chip=LM983x?) at libusb:002:002
Shouldn't a regular user be able to scan??
 
Old 06-27-2007, 04:23 PM   #2
Joey Cagle
Member
 
Registered: May 2007
Posts: 42

Rep: Reputation: 15
Quote:
Originally Posted by gamfa
It appears that there might be a permissions problem here. When root runs "sane-find-scanner", sane can pick the proper backend but when a regular user runs the same command, it can't locate the backend.

sane-find scanner by root...



as user...



Shouldn't a regular user be able to scan??
A regular user should be able to scan. But I ran into problems with Xsane myself running as a user other than root and had problems. Nathan already knows, and is working on this issue. For now, you'll just have to do "su root" to get it working.

You have to remember, Grafpup is built on Puppy, and Puppy was not a multi-user Linux. Nathan has worked hard to turn that from a single, root, user Linux into the mult-user Grafpup, and has done very well. But there are issues that still need to be worked out, and Nathan will get it straightened out.
 
Old 06-27-2007, 04:25 PM   #3
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Is the user in the scanner group?
 
Old 06-27-2007, 05:29 PM   #4
gamfa
LQ Newbie
 
Registered: May 2003
Posts: 29

Original Poster
Rep: Reputation: 15
Grafpup doesn't come with a "scanner" group. I added the following line to /etc/groups file..

Quote:
scanner::93:gary
where Gary is a user. I also changed the "group" for the /dev/usb/scanner0 and scanner1 devices to "scanner" but still no scanning for user "gary"
 
Old 06-28-2007, 10:42 AM   #5
Nathan F
Grafpup Developer
 
Registered: Jun 2006
Location: Houston, TX
Distribution: Grafpup, Dyne::Bolic
Posts: 63

Rep: Reputation: 15
Joey is essentially correct in his assessment, and yes I am aware of the problem. Unfortunately I have not been able to devote any time to it yet.

I try to keep groups a little less polluted than most distros. What I mean by that is that it is usually not really needed to have a separate group for all functions. For instance, there is no "cdrom" or "cdburning" group. Instead, the device node for your burning drive is just set to be read/write for everybody. I could tighten this a little bit of course, by changing it's ownership to the "users" group and just make it group writable, and not writable for the rest of the world.

It might work to do this for the scanner device, but I don't know yet. This is the theory behind the "scanner" group anyway. I would try changing the permissions of the device node so that it is owned by the group "users" and read/write by the same group. If that does not work the you could then try changing the ownership back to root:root and making it read/write for world.

If this can't be resolved this way I have a few other ideas, having gone through similar problems with cdrecord before finally switching to wodim. But if someone does try my suggestions please do let me know how you get on.

Nathan
 
Old 09-29-2007, 05:29 PM   #6
egasus
LQ Newbie
 
Registered: Sep 2007
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by gamfa View Post
It appears that there might be a permissions problem here. When root runs "sane-find-scanner", sane can pick the proper backend but when a regular user runs the same command, it can't locate the backend.

sane-find scanner by root...



as user...



Shouldn't a regular user be able to scan??
I believe I had the same problem as you, but on a debian machine. This is where I found the solution that worked for me:

http://www.wuglug.org.uk/tutorials/desktop/usbscanning

the sentence to read is:

"... you can just change permissions on /proc/bus/usb/blah/blah yourself
(if it's libusb:x:y, it'll be /proc/bus/usb/x/y)"

apparently there is a usb-permission-deamon that does this automatically (useful, since the device will be on a different bus every time you plug it in)

Thought this might be helpful to users of other operating systems that have the same problem as me and find this thread in google.
 
  


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
how do i scan a character from keyboard without the user having to press enter rasika Programming 6 02-11-2010 08:54 PM
C program to see user log on in system and print user with real user name also naveen245 Programming 2 12-21-2005 12:53 AM
Root can scan user can not HornOUBet Linux - Newbie 9 09-14-2005 11:00 PM
How to scan? SolidSnakeX28 Linux - Hardware 4 08-23-2005 12:54 AM
To SCAN or not to SCAN? HP750xi Suse 9.2 Pro newtwolinux Linux - Hardware 4 06-22-2005 04:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Grafpup

All times are GMT -5. The time now is 08:14 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