Hi,
Wang Jian wrote (19 Nov 2014 03:28:40 GMT) :
> However, here I am struggling with user services. I have 3 jessie hosts,
> all rolling upgrade from wheezy (one is a linode VPS).
> root@gw:~# su - lark
> lark@gw:~$ systemd-run --user /bin/ls
> Failed to create bus connection: Connection refused
Do you have a "systemd --user" instance running as the "lark" user?
Do you have a D-Bus daemon running as the "lark" user?
Has your session a valid $DBUS_SESSION_BUS_ADDRESS ?
Does pam-auth-update show "Register user sessions in the systemd
control group hierarchy" as enabled?
2014年11月20日 02:12于 "Andrei POPESCU" <andreim...@gmail.com>写道:
>
> On Mi, 19 nov 14, 19:32:51, Wang Jian wrote:
> >
> > My use case is a little special. I want to use it to replace
> > daemontools-run, to
> > run services of normal privilege on the servers, not for this single user.
>
> Could you please elaborate on this? The recommended way to start
> *system* services as another user is via the User= and Group= directives
> in the unit files.
Only root can configure this, not convenient for devs.
>
> A 'systemd --user' instance is rather meant for individual users to run
> their own services (e.g. I use it to run imapfilter).
But not limited to this. For example, you can run web application server under deployment account. Devs can do whatever they want, in more secure and
powerful way.