[systemd-devel] starting processes for other users

Michał Zegan webczat_200 at poczta.onet.pl
Thu Aug 6 05:50:13 PDT 2015


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually the use case is when I want to start a process for the user
where i have permission to do this, but I have no password. SSH can
not be used in this case, actually.

W dniu 2015-08-06 o 10:56, Lennart Poettering pisze:
> On Mon, 03.08.15 03:29, Spencer Baugh (sbaugh at catern.com) wrote:
> 
>> 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...
> 
> There's SSH.
> 
> That said, I think we could probably beef up "machinectl login" to 
> also work on the local host, instead of just a container,
> providing precisely what you are asking for.
> 
> Also see:
> 
> https://github.com/systemd/systemd/issues/825
> 
> Lennart
> 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBAgAGBQJVw1gEAAoJEHb1CzgxXKwYC30P/RKqfmMw6V9y/U4houj5+k6M
N2CKFTqG2NR62hnLJC88H7qdtDkZLgSGz4za7r92YNWmrq6bXzkeW98ZOEl9gpQx
+Q00XnsUHI9jAwXtDh6fJ/uwvFg8iyvSTkGcP4SNkgXZmBc3/u/PBS7USUWU2d2/
dLjU/7skZVMu3hZMDjqap+4jyQFiSr2cWk2961LP/BxBjlehILZxUE6iQ/8xBLm+
64cx9zw7ShjObdY1i/KDuAonW0GVGEzRnQ9lJ436Cp40N/QTh9eOvaCgj0jWHGjj
dywTKgOZXb9RVsE3FY/RHp5t3qD/zTQi9fK0/2riyBWF5KhAHMLjZaQosmtGUUfa
A5uu1gMkckQG7tGgbhnYdnswO4UibA1xRjLIAjtAvDlLdk7rzS81LCrBaLBVZFrU
yjw7oCPhm2enRjKC6nIrsKYAedB0K2QbTSDHLdboEKPAI2LtMNEuAeClYAM/1PIO
nFPKCNtKVFaF9GLymYso3FdgXQz5a1GasVJw2amfkpF1TTcJGhxwzNwMdrh/stEE
TRafgdEs1hgJYpGrph6rT3ZTRxniPW2dySCBF+kqGOBYuXEU8dEP/pqE2/sZaGY9
NRZxO1Z/rB2v5/ExHpITlX/+DO9BJkY3sFiVNlGrO5Bgc6Sc4gd5L4AToQPpUmrW
yXofQ9HNmr8EAA0gwqvv
=n+x3
-----END PGP SIGNATURE-----


More information about the systemd-devel mailing list