[systemd-devel] starting processes for other users

Spencer Baugh sbaugh at catern.com
Mon Aug 3 00:29:34 PDT 2015


Colin Guthrie <gmane at colin.guthr.ie> writes:

> MichaƂ Zegan wrote on 31/07/15 12:37:
>> The thing is, if the user does it, then after he leaves, the process
>> is running under the user's session.
>> If I log in to my own account, su to the other user and start the
>> process and then logout, this process, even though running as the
>> other user, is in my own session.
>> Actually it is sometimes confusing to see utmp entries saying
>> different things than loginctl ;)
>> 
>
> Using tools like su is rarely doing what you expect. It doesn't start a
> new pam session and doesn't start  a systemd --user etc. etc.

Is there a tool like su that does do that? That is, a way to switch from
root to another user without authenticating, that does start a PAM
session and register with logind and all of that. That's something that
would be useful, if it's possible...


More information about the systemd-devel mailing list