[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: sane access for non-root user



Quoting Darryl Clarke <smartssa@gmail.com>:
On 12/13/05, Richard Lyons <richard@the-place.net> wrote:
On Tuesday, 13 December 2005 at 14:01:06 -0500, Darryl Clarke wrote:
> On 12/13/05, Richard Lyons <richard@the-place.net> wrote:
[...]
> > Installed xsane
> > and can only access it as root.  Added myself to scanner group, but
> > still xsane finds 'no devices available' as ordinary user.  Can someone
> > remind me or point me at the relevant instructions.
> >
> > uname -r says 2.6.12-1-386. udevd is running -- I suppose that is
> > obvious as the scanner works for root.  What else is important?
>
> udev isn't setting permissions properly on the device, I would imagine.
>
> I forget exactly where though... /etc/udev/ would be a starting point.

I had already looked there, and /etc/udev/rules.d contains the line:

# Epson Corp.|Perfection 1260
SYSFS{idVendor}=="04b8", SYSFS{idProduct}=="011d", MODE="660", GROUP="sca\
nner", RUN+="/etc/hotplug.d/usb/libsane.hotplug"

Which sounds perfect to me.  Must be more to it than that, I guess.

Sounds perfect, but it's not.  Did you check and see what damage
/etc/hotplug.d/usb/libsane.hotplug might be doing?  It _could_ be
undoing the permissions.

This sounds exactly like the same issue as I reported a few days ago on this
list with gphoto2 and a USB camera. The USB device node was not updated to have
the correct group ownership by the hotplug scripts. I didn't receive an answer
on that question though. Maybe this is more of a generic issue where
permissions on USB device are not set correctly, regardless of whether it's a
camera or scanner?

/Daniel


----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



Reply to: