LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 04-29-2008, 11:27 AM   #1
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Rep: Reputation: Disabled
scanner permissions problem on -current


Well, that's it. Regular user has been added to the scanner group but is unable to open scanner (using xsane). The printer is a brother mfc-7420, and I'm using brother's scanner drivers. I see the rule in /etc/udev/rules.d. Root user is able to open the scanner.

Thanks,

Brian
 
Old 04-29-2008, 11:39 AM   #2
Carpo
Member
 
Registered: Aug 2003
Location: Somewhere
Distribution: Gentoo (for now)
Posts: 364

Rep: Reputation: 30
chmod 666 /dev/xxx
 
Old 04-29-2008, 11:52 AM   #3
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Carpo View Post
chmod 666 /dev/xxx
Didn't work. And in any case the permissions are okay (664, group scanner, of which I am a member).

Brian
 
Old 04-29-2008, 02:32 PM   #4
dissociative
Member
 
Registered: Jul 2007
Posts: 42

Rep: Reputation: 15
first be sure to read all the sane documentation first, the udev permissions must be modified for the respective device, I think that the device isn't in the /dev/ directory anymore, but I cannot remember well why It should be in something like /proc/usb/00x/00x

Last edited by dissociative; 04-29-2008 at 02:33 PM. Reason: typo
 
Old 04-29-2008, 03:03 PM   #5
Stroker
Member
 
Registered: Dec 2006
Location: The Nature Coast
Distribution: Slackware 01001101
Posts: 83

Rep: Reputation: 18
Quote:
Originally Posted by BCarey View Post
Didn't work. And in any case the permissions are okay (664, group scanner, of which I am a member).

Brian
What does:

SANE_DEBUG_[BACKENDNAME]=255 scanimage -L

as user give you?
 
Old 04-29-2008, 03:33 PM   #6
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Stroker View Post
What does:

SANE_DEBUG_[BACKENDNAME]=255 scanimage -L

as user give you?
Code:
device `brother2:bus1;dev1' is a Brother MFC-7420 USB scanner
Brian
 
Old 04-29-2008, 03:36 PM   #7
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dissociative View Post
first be sure to read all the sane documentation first, the udev permissions must be modified for the respective device, I think that the device isn't in the /dev/ directory anymore, but I cannot remember well why It should be in something like /proc/usb/00x/00x
Well, when I plug in the scanner, the following gets created in my /dev directory:

Code:
crw-rw-r-- 1 root scanner 189, 259 2008-04-29 14:32 /dev/usbdev3.4
Brian
 
Old 04-29-2008, 03:49 PM   #8
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
Check /proc/bus/usb/devices for the device. I had to do:

chmod a+rw /proc/bus/usb/001/002

To get mine to work for users.

*Edit: I guess chowning to root:scanner would also work.

Last edited by dive; 04-29-2008 at 03:50 PM.
 
Old 04-29-2008, 03:55 PM   #9
BCarey
Senior Member
 
Registered: Oct 2005
Location: New Mexico
Distribution: Slackware
Posts: 1,639

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dive View Post
Check /proc/bus/usb/devices for the device. I had to do:

chmod a+rw /proc/bus/usb/001/002

To get mine to work for users.

*Edit: I guess chowning to root:scanner would also work.
That works, but that means that I have to do this every time I unplug or plug in the scanner. Shouldn't this be automatic?

Brian
 
Old 04-29-2008, 06:45 PM   #10
psychicist
Member
 
Registered: Apr 2007
Posts: 80

Rep: Reputation: 15
You should add an entry to /etc/udev/rules.d/80-libsane.rules and submit it to the udev maintainer(s) as well so it will be included in a future udev release by default. I've had to do this with several devices over the last few years, unfortunately not all available devices are included in the udev rules by default.
 
Old 04-29-2008, 07:10 PM   #11
allend
LQ 5k Club
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware64-15.0
Posts: 6,367

Rep: Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747Reputation: 2747
This was discussed in an earlier thread.
http://www.linuxquestions.org/questi...urrent-594071/
 
  


Reply

Tags
device, root, sane, scan, scanner


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
udev and scanner - only as root since upgrade to -current niels.horn Slackware 23 11-16-2008 11:04 AM
usb scanner permissions problem leopold_2006 Slackware 6 12-11-2007 04:14 PM
Canon scanner permissions Olle Gladso Mandriva 3 03-01-2006 07:31 PM
scanner permissions [suse 10] problem david@linuxquestions Linux - Software 2 11-05-2005 02:23 AM
Coldplugging scanner permissions? eagle862 Linux - Hardware 2 02-11-2005 01:36 AM

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

All times are GMT -5. The time now is 04:39 PM.

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