Re: [systemd-devel] how to prevent systemd-logind from moving process to other cgroups when executing su command

2021-05-25 Thread Silvio Knizek
Am Dienstag, dem 25.05.2021 um 22:23 +0800 schrieb 吾为男子: > Systemd provides pam_systemd.so for PAM module and for many commands, > such as su command, pam_systemd.so will be called and the process > will be moved to the cgroup that systemd managed. Regardless your problem, `su` is never the

Re: [systemd-devel] how to prevent systemd-logind from moving process to other cgroups when executing su command

2021-05-25 Thread Lennart Poettering
On Di, 25.05.21 22:23, 吾为男子 (csren...@qq.com) wrote: > Systemd provides pam_systemd.so for PAM module and for many > commands, such as su command, pam_systemd.so will be called and the > process will be moved to the cgroup that systemd managed. > > Generally, if we move the bash process from its

[systemd-devel] how to prevent systemd-logind from moving process to other cgroups when executing su command

2021-05-25 Thread ????????
Systemd provides pam_systemd.so for PAM module and for many commands, such as su command, pam_systemd.so will be called and the process will be moved to the cgroup that systemd managed. Generally, if we move the bash process from its related session cgroup created by systemd under