Re: Scanner permission



On Wed, 2007-02-28 at 13:32 -0600, Mikkel L. Ellertson wrote:
Rick Stevens wrote:
On Wed, 2007-02-28 at 12:19 -0600, Frank Cox wrote:
I am attempting to hook a USB scanner to a FC6 box and have the usual problem
of only being able to scan (and find the scanner) as root.

How do I go about fixing this?

Well, there's lots and lots of udev rules regarding scanners. The one
you probably are most interested in is in /etc/udev.d/50-udev.rules.

Look for the stanza:

ACTION=="add", KERNEL=="sg[0-9]*", BUS=="scsi", SYSFS{type}=="[36]", \
SYMLINK+="scanner scanner-%k", MODE="0660"

This udev rule is for SCSI scanners, so it probably is not going to
affect a USB scanner.

and change the MODE bit to "MODE=0666". That will change the scanner's
mode to "rw-rw-rw-" next time it's seen, so unplug it and plug it back
in after the change to /etc/udev.d/50-udev.rules.

This is probably not going to work, because /dev/scanner* and
/dev/usb/scanner* permissions are controlled by console.perms. So
they will be set to mode 600 and owner root is no-one is logged in
at the console, and to the console owner if there is. But if you are
not getting the scanner symlink, then the problem is probably that
it is not covered by rules in 60-libsane.rules

You're right regarding SCSI vs. USB. I suspect a similar line in udev
might handle USB as well, but I've not tried it. Regardless, couldn't
one could change the /etc/security/console.perms.d/50-default.perms file
to use 666 permissions? All the he's really worried about is allowing
anyone to use the scanner, not who owns it.


It would probably help to see any log messages generated when you
plug in the scanner.

Mikkel
--

Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer rstevens@xxxxxxxxxxxxxxx -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- "Hello. My PID is Inigo Montoya. You `kill -9'-ed my parent -
- process. Prepare to vi." -
----------------------------------------------------------------------

--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list



Relevant Pages

  • Re: HP 5370C Scanner How to config?
    ... > Paul Howarth wrote: ... > No,it does noy work as root. ... It seems that USB ... scanner support doesn't use udev at all. ...
    (Fedora)
  • Re: XSane protection (?) problem
    ... warning about running as root). ... /etc/udev/libsane.rules includes my scanner, ... xsane still doesn't work. ... Solution for scanner on usb bus 005, device 002 and user in scanner group: ...
    (Debian-User)
  • Re: XSane Epson Perfection 1640 USB - mal gehts, mal nicht...
    ... jedoch weiss ich nicht warum der Scanner so störrisch ... Epson Perfection 1200 USB. ... als root zu ... Ich scanne aus Gimp, ...
    (de.comp.os.unix.linux.hardware)
  • Configuring USB for kooka
    ... I can't get kooka to see my scanner except as root. ... Creating a group 'scanner' or 'usb' and using ...
    (alt.os.linux.suse)
  • Re: [SLE] SuSE and USB
    ... >>What has SuSE 9.0 done to destroy all of my USB devices from working? ... never do my usb scanner or Palm device. ... it was ok to use the scanner as root. ...
    (SuSE)