LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   scanner permissions problem on -current (http://www.linuxquestions.org/questions/slackware-14/scanner-permissions-problem-on-current-638690/)

BCarey 04-29-2008 11:27 AM

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

Carpo 04-29-2008 11:39 AM

chmod 666 /dev/xxx

BCarey 04-29-2008 11:52 AM

Quote:

Originally Posted by Carpo (Post 3136810)
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

dissociative 04-29-2008 02:32 PM

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

Stroker 04-29-2008 03:03 PM

Quote:

Originally Posted by BCarey (Post 3136819)
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?

BCarey 04-29-2008 03:33 PM

Quote:

Originally Posted by Stroker (Post 3136983)
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

BCarey 04-29-2008 03:36 PM

Quote:

Originally Posted by dissociative (Post 3136957)
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

dive 04-29-2008 03:49 PM

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.

BCarey 04-29-2008 03:55 PM

Quote:

Originally Posted by dive (Post 3137018)
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

psychicist 04-29-2008 06:45 PM

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.

allend 04-29-2008 07:10 PM

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


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