← Back to team overview

desktop-packages team mailing list archive

[Bug 1480919] [NEW] saned only runs with user root, not with intended user saned

 

Public bug reported:

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

** Affects: sane-backends (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug vivid

** Summary changed:

- saned only runs as root, not saned
+ saned only runs with user root, not with intended user saned

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sane-backends in Ubuntu.
https://bugs.launchpad.net/bugs/1480919

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

Status in sane-backends package in Ubuntu:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sane-backends/+bug/1480919/+subscriptions