Public bug reported:

According to the man page `sudo -i` will run the command with an
environment "similar" to the one a user would receive at log in.

When trying to use tools that use D-Bus, specifically: systemctl --user,
it will be impossible to control them via sudo.

While there is a workaround; setting the XDG_RUNTIME_DIR manually, this
means any configuration change that causes the XDG_RUNTIME_DIR to change
will have to be applied in several locations.

** Affects: sudo (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: dbus systemd-user

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to sudo in Ubuntu.
https://bugs.launchpad.net/bugs/1548300

Title:
  XDG_RUNTIME_DIR not set when using sudo -i

Status in sudo package in Ubuntu:
  New

Bug description:
  According to the man page `sudo -i` will run the command with an
  environment "similar" to the one a user would receive at log in.

  When trying to use tools that use D-Bus, specifically: systemctl
  --user, it will be impossible to control them via sudo.

  While there is a workaround; setting the XDG_RUNTIME_DIR manually,
  this means any configuration change that causes the XDG_RUNTIME_DIR to
  change will have to be applied in several locations.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/sudo/+bug/1548300/+subscriptions

-- 
Mailing list: https://launchpad.net/~touch-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~touch-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to