[sane-devel] help configuring
Matt Zagrabelny
mzagrabe at d.umn.edu
Wed Feb 10 22:31:02 GMT 2021
Hi!
On Wed, Feb 10, 2021 at 1:08 PM Jürgen Mellinger <
juergen.mellinger at t-online.de> wrote:
> Hi,
>
> due to a bug in an older version of the libsane package (which is the
> current one if you are on Debian),
>
I am running Debian. Sid to be precise. Here is the version of SANE i just
installed:
$ apt policy libsane1
libsane1:
Installed: 1.0.31-4
Candidate: 1.0.31-4
Version table:
*** 1.0.31-4 500
500 http://deb.debian.org/debian sid/main amd64 Packages
100 /var/lib/dpkg/status
I looked up the bug report [0] and it said it was resolved back at version
1.0.29.
So, that seems curious.
permissions on usb scanners are not set correctly.
> A fix/workaround is described here:
>
> https://linux.debian.bugs.dist.narkive.com/NIqXopxb/bug-918358-libsane-amd64-missing-permissions-for-scanner-group-on-usb-device#post2
>
>
Ahh. Thank you for the hint!
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:
# cat /etc/udev/rules.d/70-scanner.rules
ACTION=="add" \
ENV{DEVNAME}=="?*" \
ENV{libsane_matched}=="yes" \
RUN+="/usr/bin/setfacl -m g:scanner:rw $env{DEVNAME}"
Debian is also migrating (IIRC) to a usr-merged environment, so I changed
the path for setfacl.
All seems to be working now.
Thank you again for the help!
-m
[0] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=918358
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/sane-devel/attachments/20210210/239cbc3e/attachment.html>
More information about the sane-devel
mailing list