LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 12-11-2007, 03:04 PM   #1
leopold_2006
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
usb scanner permissions problem


I have slackware 12, and epson perfection 1670. Scanner works perfectly on debian/ubuntu/gentoo with non-root users.
Now it works only under root. I thought that problem is in udev, but all setting are ok(I think).

with root:
scanimage -L
device `snapscan:libusb:001:003' is a EPSON EPSON Scanner flatbed scanner

with other users:
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).

How to make right permissions after pluging in scanner if /etc/udev/rules.d/80-libsane.rules:

ACTION!="add", GOTO="libsane_rules_end"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"
# EPSON Perfection 1670 | EPSON Perfection 1670 PHOTO | Epson Perfection 1670
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="011f", MODE="660", GROUP="scanner"
LABEL="libsane_rules_end"
 
Old 12-11-2007, 03:14 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Are you a member of group "scanner" ? You must be. Check '/etc/group'
 
Old 12-11-2007, 03:21 PM   #3
leopold_2006
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
yes i'm a member of group scanner, and also plugdev
I can work with scanner only after i do this:
chmod a+rw /proc/bus/usb/001/00.
 
Old 12-11-2007, 03:37 PM   #4
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
Then, maybe you could try changing this rule:

Quote:
Originally Posted by leopold_2006 View Post
How to make right permissions after pluging in scanner if /etc/udev/rules.d/80-libsane.rules:

ACTION!="add", GOTO="libsane_rules_end"
SUBSYSTEM!="usb_device", GOTO="libsane_rules_end"
# EPSON Perfection 1670 | EPSON Perfection 1670 PHOTO | Epson Perfection 1670
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="011f", MODE="660", GROUP="scanner"
LABEL="libsane_rules_end"
Instead of:
Code:
MODE="660"
put:
Code:
MODE="664"
or if the above doesn't work,
Code:
MODE="666"
 
Old 12-11-2007, 03:46 PM   #5
leopold_2006
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
after changing mode it doesn't work
I tried udevtest to watch what's happening when i reboot
udevtest /class/usb_endpoint/usbdev2.2_ep81/
....
udev_node_add: creating device node '/dev/usbdev2.2_ep81', major=254, minor=11, mode=0660, uid=0, gid=0
....

This is very strange because in /etc/udev/rules.d/80-libsane.rules gid is another (for group scanner)
 
Old 12-11-2007, 04:55 PM   #6
leopold_2006
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
problem solved

I added this line into /etc/udev/rules.d/50-udev-default.rules in libusb section.
SUBSYSTEM=="usb", ATTRS{idProduct}=="011f", GROUP="scanner", MODE="0660"
Now everything works.

I've seen my problem in the internet but i didnt find any solution. It seems to me to be a bug in a description of devices that use libusb.
 
Old 12-11-2007, 05:14 PM   #7
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
That's odd. Well, glad to see it worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
USB Scanner problem arindom Linux - Newbie 9 03-08-2007 03:19 AM
scanner permissions [suse 10] problem david@linuxquestions Linux - Software 2 11-05-2005 03:23 AM
USB Scanner problem: usb 1-2: device not accepting address 3, error -71 lagartoflojo Slackware 1 11-13-2004 05:26 PM
USB, scanner problem. Likosin Linux - Hardware 1 05-22-2004 10:29 AM
USB Scanner problem again phil81 Linux - Hardware 5 04-09-2004 09:59 AM


All times are GMT -5. The time now is 12:42 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration