<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">2014-11-19 18:07 GMT+08:00 intrigeri <span dir="ltr"><<a href="mailto:intrigeri@debian.org" target="_blank">intrigeri@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
Wang Jian wrote (19 Nov 2014 03:28:40 GMT) :<br>
<span class="">> However, here I am struggling with user services. I have 3 jessie hosts,<br>
> all rolling upgrade from wheezy (one is a linode VPS).<br>
<br>
> root@gw:~# su - lark<br>
> lark@gw:~$ systemd-run --user /bin/ls<br>
> Failed to create bus connection: Connection refused<br>
<br>
</span>Do you have a "systemd --user" instance running as the "lark" user?<br></blockquote><div><br></div><div>Yes.</div><div> </div><div># loginctl enable-linger lark</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Do you have a D-Bus daemon running as the "lark" user?<br></blockquote><div><br></div><div>No.</div><div><br></div><div>No dbus daemon running as 'lark'. I did try as</div><div><br></div><div><a href="https://wiki.archlinux.org/index.php/Systemd/User#D-Bus">https://wiki.archlinux.org/index.php/Systemd/User#D-Bus</a><br></div><div><br></div><div>but without success.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Has your session a valid $DBUS_SESSION_BUS_ADDRESS ?<br></blockquote><div><br></div><div>No.</div><div><br></div><div>I remotely ssh login as root then su - lark.</div><div><br></div><div>I guess it's a PAM configuration problem but I am still trying to</div><div>understand the whole picture.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<br>
Does pam-auth-update show "Register user sessions in the systemd<br>
control group hierarchy" as enabled?<br></blockquote><div><br></div><div>Yes.</div><div> </div><div>My use case is a little special. I want to use it to replace daemontools-run, to</div><div>run services of  normal privilege on the servers, not for this single user.</div><div><br></div></div></div></div>