-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 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 ;)
W dniu 2015-07-31 o 05:35, Andrei Borzenkov pisze: > В Fri, 31 Jul 2015 00:19:06 +0200 Michał Zegan > <webczat_...@poczta.onet.pl> пишет: > >> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 > >> Hello. What is the recommended easy way to start processes that >> stay longer like screen in case I want to do it by first >> executing su to change to the target user? > > This is controlled by KillUserProcesses, see man logind.conf. But > default is to leave them running, so it should just work. > -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBAgAGBQJVu13nAAoJEHb1CzgxXKwYH5IP/2ylY+6YSmmh/O0bXR3t49DO EVjD01PtEzXjfmA9HFfZ3ybyoQlABvdO3PP3k6SnoR+kdgQTHOP86LdbWhf5sNZQ KbLnG2pnuli4XB4Dg+ueMa3B2nomOX+CNu3arBpMDVTvcOUAAF4bJBF06urx+0KX sTT6T37prJUrhjhAJ5K4YHo8+zoqU+u1zM51e0gNACn8DCb9A4l71GnpN6Zml+fY fJCmXKgkzfavWECm4qCvEIR0X7K0lkD/MihF/ritFNd1Qh9qHPUcubLkr/DFSKcU Artu7JWdGMID3y41brEJ+b/iXFCt63/gJLE3WSFjT4c0OfAr16vPRW6iGioflNn4 jd9YfAzugSXkZNdiaAJ8RArH3ue1CULctIq7SE/QR2MZ2IPDMmzdVGvkl/0hQ31r ZG4MsSfsyPWrrC9EfQCX/taSgEouUapMic5cFSLfEFljxGN2ldHZyrWmBobFvmHt dOpqtU3iH06qOb4C5Q7N32nbGJnNeN6UstqYryQYOiobL4ydLBGnpm/GPQP/hjha 5xirMkPTy8MpaR+3fPMsMOXLK5NYMMDjHv3wuv/jLbgaVSs/ZM6VArYikR1DHgut /DwSLbuwK/f/m9TtonSBk1nHPBkShx5GQLJb1J8VRuJOZFi2p7U4bj0EwXeALNCW YH06jKDeMl0nezItvCfP =PWnk -----END PGP SIGNATURE----- _______________________________________________ systemd-devel mailing list systemd-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/systemd-devel