change udev-rules to acl to circumvent group policy problems 2nd try

This commit is contained in:
Harvey committed 2021-04-12 15:37:09 +02:00
1 parent 6422147ec2
commit 6a1086e8b9
1 file changed
+1 -2
+1 -2
View File
@@ -8,8 +8,7 @@ BEGIN {
NF >= 3 && $1 ~ /^ *0[xX][[:xdigit:]]+ *$/ {
id = "000" tolower( substr( $1, 3 ));
id = substr( id, length( id ) - 3 );
#print "ATTR{idProduct}==\"" id "\", MODE=\"0664\", GROUP=\"scanner\", ENV{libsane_matched}=\"yes\"";
print "ATTR{idProduct}==\"" id "\", MODE=\"0664\", GROUP=\"lp\", ENV{libsane_matched}=\"yes\"";
print "ATTR{idProduct}==\"" id "\", ENV{libsane_matched}=\"yes\", RUN+=\"/usr/bin/setfacl -m g:scanner:rw /dev/$name\"";
}
END {
print "LABEL=\"brscan4_end\"";