<div dir="ltr"><div dir="ltr">Hi!<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 10, 2021 at 1:08 PM Jürgen Mellinger <<a href="mailto:juergen.mellinger@t-online.de" target="_blank">juergen.mellinger@t-online.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
due to a bug in an older version of the libsane package (which is the current one if you are on Debian),<br></blockquote><div><br></div><div>I am running Debian. Sid to be precise. Here is the version of SANE i just installed:</div><div><br></div><div>$ apt policy libsane1<br>libsane1:<br>  Installed: 1.0.31-4<br>  Candidate: 1.0.31-4<br>  Version table:<br> *** 1.0.31-4 500<br>        500 <a href="http://deb.debian.org/debian" target="_blank">http://deb.debian.org/debian</a> sid/main amd64 Packages<br>        100 /var/lib/dpkg/status<br></div><div><br></div><div>I looked up the bug report [0] and it said it was resolved back at version 1.0.29.</div><div><br></div><div>So, that seems curious.</div><div><br></div><div></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
permissions on usb scanners are not set correctly.<br>
A fix/workaround is described here:<br>
<a href="https://linux.debian.bugs.dist.narkive.com/NIqXopxb/bug-918358-libsane-amd64-missing-permissions-for-scanner-group-on-usb-device#post2" rel="noreferrer" target="_blank">https://linux.debian.bugs.dist.narkive.com/NIqXopxb/bug-918358-libsane-amd64-missing-permissions-for-scanner-group-on-usb-device#post2</a><br>
<br></blockquote><div><br></div><div>Ahh. Thank you for the hint!</div><div><br></div><div>The setfacl gets run a few times (different udev events and such) - there are some errors due to DEVNAME not being set in the environment. I've modified the rule accordingly so that the setfacl only gets run once:<br></div><div><br></div><div># cat /etc/udev/rules.d/70-scanner.rules <br>ACTION=="add" \<br>ENV{DEVNAME}=="?*" \<br>ENV{libsane_matched}=="yes" \<br>RUN+="/usr/bin/setfacl -m g:scanner:rw $env{DEVNAME}"<br></div><div><br></div><div>Debian is also migrating (IIRC) to a usr-merged environment, so I changed the path for setfacl.</div><div><br></div><div>All seems to be working now.</div><div><br></div><div>Thank you again for the help!</div><div><br></div><div>-m</div><div><br></div><div>[0] <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918358" target="_blank">https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918358</a></div></div></div>