Cant run 'systemctl status' as a normal user
Michael Biebl
biebl at debian.org
Fri Mar 11 14:56:43 GMT 2016
Am 11.03.2016 um 15:53 schrieb Sandro Tosi:
> Hey there!
> on a Jessie system, i would like to run systemctl status as a non
> privileged user, like myself, but I got:
>
> $ systemctl status
> Failed to get D-Bus connection: No such file or directory
>
> (stracing it, it tries to access /var/run/dbus/system_bus_socket which
> doesnt exist as we dont run dbus there), while running as root (or via
> sudo) works just fine:
>
> $ sudo systemctl status >/dev/null ; echo $?
> 0
>
> is there a way to run 'systemctl status' as a normal user?
Install dbus.
If you run as root, systemd has a fallback to a private dbus connection
(that doesn't running a running dbus daemon) which is not accessible for
unprivileged users.
--
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20160311/019e474f/attachment-0002.sig>
More information about the Pkg-systemd-maintainers
mailing list