Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2015-02-03 Thread Lennart Poettering
On Thu, 18.12.14 11:05, Andrei Borzenkov (arvidj...@gmail.com) wrote: > As far as I know, systemd still officially retains compatibility with > initscripts. Unfortunately, session management now at least partially > broke it. > > Any initscript that is using "su -" would create logind session; th

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-21 Thread Dale R. Worley
Andrei Borzenkov writes: > There is not a single word about "login session" in su man page. > It says it starts "login shell" - but "login session" is not created by > shell so I do not see where you draw this conclusion from. > > The primary reason to use "su -" in this cases is a) get a clean >

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-21 Thread Ivan Shapovalov
On Friday, December 19, 2014 at 07:58:11 PM, Andrei Borzenkov wrote: > В Fri, 19 Dec 2014 11:16:58 -0500 > wor...@alum.mit.edu (Dale R. Worley) пишет: > > > Simon McVittie writes: > > > On 18/12/14 14:10, Dale R. Worley wrote: > > >> Simon McVittie writes: > > >>> On 18/12/14 08:05, Andrei B

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-19 Thread Andrei Borzenkov
В Fri, 19 Dec 2014 11:16:58 -0500 wor...@alum.mit.edu (Dale R. Worley) пишет: > Simon McVittie writes: > > On 18/12/14 14:10, Dale R. Worley wrote: > >> Simon McVittie writes: > >>> On 18/12/14 08:05, Andrei Borzenkov wrote: > Any initscript that is using "su -" would [cause badness] > >>>

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-19 Thread Dale R. Worley
Simon McVittie writes: > On 18/12/14 14:10, Dale R. Worley wrote: >> Simon McVittie 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

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Frederic Crozat
Le jeudi 18 décembre 2014 à 12:19 +, Simon McVittie a écrit : > 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? Unfortunately, we

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Michael Biebl
2014-12-18 13:19 GMT+01:00 Simon McVittie : > 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? > > In Debian, our init scripts would typic

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Reindl Harald
Am 18.12.2014 um 15:10 schrieb Dale R. Worley: Simon McVittie 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,

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Simon McVittie
On 18/12/14 14:10, Dale R. Worley wrote: > Simon McVittie 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 th

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Dale R. Worley
Simon McVittie 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

Re: [systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Simon McVittie
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? In Debian, our init scripts would typically use "start-stop-daemon --chuid whateveruser --sta

[systemd-devel] logind, su - sessions and initscripts compatibility

2014-12-18 Thread Andrei Borzenkov
As far as I know, systemd still officially retains compatibility with initscripts. Unfortunately, session management now at least partially broke it. Any initscript that is using "su -" would create logind session; this session will persist until processes started by initscript are runing. On shu