[systemd-devel] logind, su - sessions and initscripts compatibility
Dale R. Worley
worley at alum.mit.edu
Thu Dec 18 06:10:29 PST 2014
Simon McVittie <simon.mcvittie at collabora.co.uk> writes:
> On 18/12/14 08:05, Andrei Borzenkov wrote:
>> Any initscript that is using "su -" would [cause badness]
> Don't do that then? Init scripts are fairly clearly not login sessions.
> Which init scripts do that?
More to the point, why would an initscript do that, since it's *already*
running as root?
Though I'm sufficiently out of the loop regarding the architecture that
I don't see how "su" can have such complexities -- As far as I know, its
purpose is to create a subprocess whose UID is different from the UID of
this process; in no way is it intended to be "a separate login". Why
would shutting down "logind" suddenly cause one of my subprocesses to
More information about the systemd-devel