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

Re: sane access for non-root user



On Tuesday, 13 December 2005 at 20:53:09 -0500, Darryl Clarke wrote:
> On 12/13/05, Richard Lyons <richard@the-place.net> wrote:
> > On Tuesday, 13 December 2005 at 14:01:06 -0500, Darryl Clarke wrote:
> > >
> > > 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.

I am fumbling here, but /etc/hotplug.d/usb/libsane.hotplug is not too long 
and says around line 27
    chown $3 $DEVICE && chmod $4 $DEVICE

Can it be that this relates to the info taken from /etc/udev/rules.d
(see above), cos if so $3 and $4 are reversed? Or is that too obvious...

-- 
richard



Reply to: