Fedora Linux Support Community & Resources Center
Old 23rd December 2011, 09:04 PM
cc7gir Offline
Registered User
Join Date: Jan 2010
Posts: 10
Scanner Permission


I have a Brother-7440N and its works as a printer for all the normal users, but I would also like to get the scanner working, without needing root permissions.
I installed the drivers provided by Brother, and it only works as root.

$ sudo simple-scan
There is no scanner group that I can add my user to.
Is it correct to add the users who need the scanner to the lp group?


Simply creating a scanner group and adding users to it does not help.
I have a feeling I might need to write udev rules, but I have almost no knowledge of how it works and what it actually is.

Alright, I am fairly certain have to write a udev rule for this to work.
$ udevadm monitor
gives this when I turn the unit on and off:
monitor will print the received events for:
UDEV - the event which udev sends out after rule processing
KERNEL - the kernel uevent

KERNEL[4460.750468] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0 (usb)
KERNEL[4460.750510] remove /class/usb (class)
KERNEL[4460.750551] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0 (usb)
KERNEL[4460.750584] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.1 (usb)
KERNEL[4460.750619] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2 (usb)
KERNEL[4460.750841] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2 (usb)
UDEV [4460.755083] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0 (usb)
UDEV [4460.755564] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2 (usb)
UDEV [4460.756349] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.1 (usb)
UDEV [4460.759510] remove /class/usb (class)
UDEV [4460.759561] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0 (usb)
UDEV [4460.765402] remove /devices/pci0000:00/0000:00:1d.0/usb2/2-2 (usb)

KERNEL[4469.608217] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2 (usb)
KERNEL[4469.610570] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0 (usb)
KERNEL[4469.615473] add /class/usb (class)
KERNEL[4469.615767] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0 (usb)
KERNEL[4469.615812] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.1 (usb)
KERNEL[4469.615914] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2 (usb)
UDEV [4469.616377] add /class/usb (class)
UDEV [4469.696647] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2 (usb)
UDEV [4469.704955] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.2 (usb)
UDEV [4469.713270] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0 (usb)
UDEV [4469.719504] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.1 (usb)
UDEV [4469.720921] add /devices/pci0000:00/0000:00:1d.0/usb2/2-2/2-2:1.0/usb/lp0 (usb)

Last edited by cc7gir; 23rd December 2011 at 09:43 PM.
Reply With Quote
Old 24th December 2011, 05:45 AM
pitonyak Offline
Registered User
Join Date: Jan 2005
Location: Columbus, Ohio, USA
Posts: 128
Re: Scanner Permission

Many moons ago in a Fedora version far far away, I had a problem that only root was able to scan. I wrote the following shell script:

# Set scanner vendor and product code as returned by lsusb.

scanner=`/sbin/lsusb -d $scandevice`
bus=`echo $scanner| sed -e s/Bus\ // -e s/\ Device.\*//`
device=`echo $scanner| sed -e s/Bus.\*Device\ // -e s/\:.\*//`
if [ "$bus" = "" ] | [ "$device" = "" ]
  echo "Unable to find scanner with vendor:product = $scandevice"
  exit 1
chmod 666 /proc/bus/usb/$bus/$device
echo "Set access for $scandevice at /proc/bus/usb/$bus/$device"
Note that this will NOT work for you (even if it is a workable solution) because the scandevice of 0468:0122 is specific to the epson scanner that I used when I wrote this script. My initial recommendation is that you understand what this does (if you would like some hints, just ask). If you are able to produce usable results using this technique then you may be correct that you can write some rules to set things auto-magically. Realize that I am not an expert and I might send you down a very bad road. So, don't ask me how to directly modify the dev rules to do this. I did spend a few hours trying to fully understand how those magic rules function, but I never tackled them.
Reply With Quote

brother, permission, scanner

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting scanner set up (Old plustek scanner) tdell Hardware & Laptops 4 2nd February 2010 06:49 PM
scanner ColonelPenguin Hardware & Laptops 2 23rd February 2009 09:46 PM

Current GMT-time: 23:09 (Sunday, 24-09-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat