Hi!
First of all, I've solved. Hope It was clear.
Exactly, it itsn't a problem strictly related to groups but anyway it ragards permissions of scanner device file...
I think right group user must belong is "lp" not "scanner"
Udev should change that file permissions to "root:lp" if I well remember.
And it does it when you plug scanner via usb after system boot.
But it does not if scanner is connected before boot, in this case you have to replug usb scanner cable to use it as simple user, otherwise it works just as root.
I'll report my actual fine working permissions etc:
Code:
root@darkstar:~# lsusb |grep Mustek
Bus 001 Device 005: ID 055f:0002 Mustek Systems, Inc. ScanExpress 600 CU
root@darkstar:~# ls -l /dev/bus/usb/001/005
crw-rw-r-- 1 root lp 189, 4 giu 26 09:15 /dev/bus/usb/001/005
root@darkstar:~# grep -A10 -i mustek.*600.*cu /lib/udev/rules.d/80-libsane.rules |grep 0002
ATTRS{idVendor}=="055f", ATTRS{idProduct}=="0002", MODE="0660", GROUP="lp", ENV{libsane_matched}="yes"
But I've now solved by editing udev rule file. Before this permissions were:
Code:
crw-rw-r-- 1 root root 189, 4 giu 26 09:15 /dev/bus/usb/001/005
Udev rule file involved is
Code:
/lib/udev/rules.d/80-libsane.rules
Above you can see what exactly Pat patch does:
Code:
cat tools/udev/libsane.rules \
| sed -e "s/GROUP=\"scanner\"/GROUP=\"lp\"/g" \
| sed -e "s/MODE=\"0664\"/MODE=\"0660\"/g" \
| sed -e "s/ACTION!=\"add\"/ACTION!=\"add|change\"/g" \
> $PKG/lib/udev/rules.d/80-libsane.rules
I've manually solved by editing that udev rule file changing:
in
Code:
ACTION!="add|change"
Now udev changes group owning from "root" to "lp" even when scanner is connected before I power on my PC.
A part of this explained.
My post was for ask how exactly let staff know about this bug and suggest to patch also stable branch of slackware not only current one.
How to report a bug (not security related) and suggest a solution to slackware development team?
Anyway thanks for your reply!