Scanner driver needs to run as root

Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
pbolger

Scanner driver needs to run as root

Post by pbolger »

I've installed my Canon 4010c scanner by running the cndrvsane-dr4010c_1.00-4_i386.deb but for some reason none of the scanning applications (gscan2pdf, xsant) can find the scanner unless they are run as root.

I've tried chowning the /opt/Canon directory, but that's not the problem. Can anyone help?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WoodLark

Re: Scanner driver needs to run as root

Post by WoodLark »

I had the same problem with a Brother scanner. If your scanner is USB, try this, it worked for me:

Run lsusb .
You will get a bunch of lines for your usb devices.
Look for the line for your scanner, Mine looked like this:

Bus 002 Device 008: ID 04f9:0270 Brother Industries, Ltd

As root:

chmod 777 /dev/bus/usb/002/008

where 002 is the bus and 008 is the device (yours will probably be different).

CAUTION: chmod 777 will open the device to everyone. I don't care because I am the only one with access to the computer, but you may be in a situation where you need to care.
pbolger

Re: Scanner driver needs to run as root

Post by pbolger »

That works, thanks.

One question though, does a USB device always have the same bus address? In other words, if I reconnect the device at some future time will I have to do the same thing again?
WoodLark

Re: Scanner driver needs to run as root

Post by WoodLark »

I'm not an expert, but I believe it will unless you plug it into a different USB port.
User avatar
Bolle1961
Level 5
Level 5
Posts: 888
Joined: Tue Jun 29, 2010 12:59 pm

Re: Scanner driver needs to run as root

Post by Bolle1961 »

From the Brother side :
1. Open "/lib/udev/rules.d/60-libsane.rules" as a super-user
2. Add the following two lines to the end of the device list. (Before the line "# The following rule will disable ..."):

The lines to be added---------------------------

# Brother scanner
ATTRS{idVendor}=="04f9", MODE="0664", GROUP="scanner", ENV{libsane_matched}="yes"

3. Restart the OS.
Replace the vendor ID en mode number with the numbers of your Canon scanner
http://support.brother.com/g/s/id/linux ... rect=on#d6

You get the vendor ID en mode by typing lsusb in the terminal
example
Bus 001 Device 002: ID 13d3:5702 IMC Networks UVC VGA Webcam
13d3 is the vendor ID
5702 mode
Last edited by Bolle1961 on Fri Nov 14, 2014 9:22 am, edited 1 time in total.
WoodLark

Re: Scanner driver needs to run as root

Post by WoodLark »

I tried the instructions on the Brother site. They did not work.
pdc_2
Level 10
Level 10
Posts: 3019
Joined: Mon May 11, 2009 1:21 am

Re: Scanner driver needs to run as root

Post by pdc_2 »

can you tell us what the results of
lsusb
are for your Canon scanner please?
Locked

Return to “Printers & Scanners”