saned only runs with user root, not with intended user saned
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sane-backends (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
The default setup for `systemd` fails silently (process "inactive (dead)" after start) and `saned` can only be started with `sudo /usr/sbin/saned -d -s -a saned`. The problem can be reduced to the choice of user by running
$ sudo start-stop-daemon --start --exec /usr/sbin/saned --user saned --group saned -- -d -s -a saned
[saned] main: starting debug mode (level 2)
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up
[saned] do_bindings: [0] bind failed: Address already in use
[saned] check_host: access by remote host: ::ffff:127.0.0.1
[saned] init: access granted to richter@
[saned] process_request: bad status 22
[saned] bailing out, waiting for children...
[saned] bail_out: all children exited
(the `Address already in use` message seems to non-fatal (IPv6 related?)) which fails and
$ sudo start-stop-daemon --start --exec /usr/sbin/saned --user root --group root -- -d -s -a saned
[saned] main: starting debug mode (level 2)
[saned] saned (AF-indep+IPv6) from sane-backends 1.0.24 starting up
[saned] do_bindings: [0] bind failed: Address already in use
[saned] check_host: access by remote host: ::ffff:127.0.0.1
[saned] init: access granted to richter@
which works, but runs with service without reduced privileges which would be preferable for a service.
ProblemType: Bug
DistroRelease: Ubuntu 15.04
Package: sane-utils 1.0.24-4ubuntu1
Uname: Linux 4.1.3-040103-
NonfreeKernelMo
ApportVersion: 2.17.2-0ubuntu1.1
Architecture: amd64
CurrentDesktop: Unity
Date: Mon Aug 3 15:30:21 2015
InstallationDate: Installed on 2015-06-08 (56 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
XDG_RUNTIME_
LANG=de_DE.UTF-8
SHELL=/bin/bash
SourcePackage: sane-backends
UpgradeStatus: Upgraded to vivid on 2015-06-09 (55 days ago)
mtime.conffile.
mtime.conffile.
Karl-Philipp Richter, thank you for reporting this and helping make Ubuntu better.
As per https:/ /wiki.ubuntu. com/Releases 15.04 went EOL as of February 4, 2016.
Please see https:/ /help.ubuntu. com/community/ SaneDaemonTutor ial for getting saned to work in 16.04.
If you have an issue in a supported release, please file a new report in it, and feel free to subscribe me to it.