saned only runs with user root, not with intended user saned

Bug #1480919 reported by Karl-Philipp Richter
8
This bug affects 1 person
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@::ffff:127.0.0.1
    [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@::ffff:127.0.0.1

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-generic x86_64
NonfreeKernelModules: nvidia
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_DIR=<set>
 LANG=de_DE.UTF-8
 SHELL=/bin/bash
SourcePackage: sane-backends
UpgradeStatus: Upgraded to vivid on 2015-06-09 (55 days ago)
mtime.conffile..etc.default.saned: 2015-08-01T18:29:29.803750
mtime.conffile..etc.sane.d.saned.conf: 2015-08-01T18:36:03.214760

Revision history for this message
Karl-Philipp Richter (krichter722) wrote :
summary: - saned only runs as root, not saned
+ saned only runs with user root, not with intended user saned
Revision history for this message
penalvch (penalvch) wrote :

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/SaneDaemonTutorial 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.

Changed in sane-backends (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.