Finally, the following is what works for me:
It seems that there is the need to change users to root at several
places:
1. /etc/scanbd/scanbd.conf
Change user so that it is 'root' instead of 'saned'
# drop priviliges to this user
#=============================
# Linux (most distributions use the saned user):
# user = saned
# ArchLinux (ArchLinux doesn't have saned user)
# user = daemon
# *BSD
# user = root
# user = saned
user = root
2. /lib/systemd/system/[email protected]
Change User from 'User=daemon' to 'User=root'.
Since if it is 'daemon' after you have pressd a button scanbd tries to
start the saned process with user 'daemon'. But then saned does not find
any scanner device. It just seem to work with user 'root'
[Unit]
Description=Scanner Service
Requires=scanbm.socket
[Service]
ExecStart=/usr/sbin/scanbm -c /etc/scanbd/scanbd.conf
#User=daemon
User=root
Group=scanner
StandardInput=socket
Environment=SANE_CONFIG_DIR=/etc/scanbd
3. /etc/dbus-1/system.d/scanbd_dbus.conf
Here I also changed the user. It was 'saned' before, but I changed it to 'root'
as well.
Don't forget to run systemctl daemon-reload
<!DOCTYPE busconfig PUBLIC "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<policy user="root"> <!-- Arch Linux user="daemon" -->
<allow own="de.kmux.scanbd.server"/>
<allow send_interface="de.kmux.scanbd.server"/>
<allow receive_interface="de.kmux.scanbd.server"/>
<allow send_destination="de.kmux.scanbd.server"/>
</policy>
<policy context="default">
<allow send_interface="de.kmux.scanbd.server"/>
<allow send_destination="de.kmux.scanbd.server"/>
</policy>
</busconfig>
In my case everything works as before in Ubuntu 16.04.
I expect that it is just a workaround to run all these processes with root
priviledges. The root cause is probably related to the way of access to the usb
device. (libusb?)
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1747115
Title:
scanbd does not find scanner
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/scanbd/+bug/1747115/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs