On 12/14/05, Richard Lyons <[EMAIL PROTECTED]> wrote: > On Tuesday, 13 December 2005 at 20:53:09 -0500, Darryl Clarke wrote: > > On 12/13/05, Richard Lyons <[EMAIL PROTECTED]> 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...
That's about where I cheated and changed it to: chown root:scanner $DEVICE && chmod 0660 $DEVICE I'm not exactly sure the order parameters are passed to the RUN+ script from udev, so I can't say whether $3 and $4 are actually correct. On the other hand, if udev only provides a group, and $3 is that group, then 'chown $3' is technically wrong and could very well be the cause. -- ~ Darryl ~ [EMAIL PROTECTED] http://smartssa.com / http://darrylclarke.com