You are not logged in.

#1 2008-03-25 15:32:13

bt
Member
Registered: 2007-04-11
Posts: 198

sane and xsane permissions

I decided it was time to leave  testing after an update of libtool killed sane. I sucessfully reinstalled the libtool package and reinstalled xsane as well. The scanner is recognized and works -- but only as root. I have followed all the posts, and it seems as if all my permissions are correct. Xsane runs perfectly from root, not at all from user.

I am sure I'm overlooking something obvious, but I cant find it.

Any ideas?

Offline

#2 2008-03-25 15:45:19

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: sane and xsane permissions

Are you in the scanner group?  You will need to logout/login for group changes to take effect.

Edit: also do a "ls -la /dev/bus/usb/*" to see what permissions your scanner is getting added with (assuming it is USB)

Last edited by Allan (2008-03-25 15:47:14)

Offline

#3 2008-03-25 16:21:48

bt
Member
Registered: 2007-04-11
Posts: 198

Re: sane and xsane permissions

sane-find-scanner (run as user) fins the usb scanner (Epson Perfection 1640SU) at libusb:001:003 which is confirmed by running lsusb.
Permissions shown at:  /dev/bus/usb/001: crw -r--r-- root root 189 0 2008-03-25 11:49 003

/etc/udev/rules.d/53.sane.rules
#Epson Perfection 1640SU PHOTO | Epson Perfection 1640 | Epson
#Perfection 1640
ATTRS{idVendor}==04b8 ATTRS{idProduct}==010a
MODE="0664", GROUP="scanner"
ENV{libsane matched}="yes"

In scanner group.

Last edited by bt (2008-03-25 17:31:29)

Offline

#4 2008-03-25 23:41:11

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,396
Website

Re: sane and xsane permissions

Well, it appears it is not being added in group "scanner".  Possibly something wrong with the udev rule but I not sure what.

Offline

#5 2008-03-26 12:17:40

Kane
Member
Registered: 2006-10-08
Posts: 220

Re: sane and xsane permissions

Im having the same problem, can scan fine as root but not as a user.

I did gpasswd -a user scanner

i think the permissions of the scanner are: drwxr-xr-x 2 root root 0 2008-03-26 09:10 003

EDIT:

sorry forget i said anything,

id logged out and back in, but ive just done a reboot and that seems to have solved it.

Last edited by Kane (2008-03-26 12:48:04)

Offline

#6 2008-03-30 02:37:54

Zerg2000
Member
From: Poland
Registered: 2008-03-30
Posts: 10

Re: sane and xsane permissions

It appears that udev has problems with rules matching by idVendor when system is up and running but everything is ok if device was online during boot. Please check out this bug http://bugs.archlinux.org/task/9935 and comments. If You have the same problem then please vote for this bug and/or post a comment.

Thank You. wink


E-mail: zerg2000 (a) astral org pl
Jabber: zerg2000@jabber.astral.org.pl

Offline

#7 2008-03-30 13:36:47

bt
Member
Registered: 2007-04-11
Posts: 198

Re: sane and xsane permissions

Thanks for the update. As long as I turn the scanner on before boot, it works perfectly. Did try the local rules, but that had no effect.

Offline

Board footer

Powered by FluxBB