(In reply to Franck Bui from comment #7) > (In reply to Pi Ny from comment #6) > > peter@nue-p1:~> sudo ps -u charly > > [sudo] password for root: > > PID TTY TIME CMD > > 3927 ? 00:00:00 screen > > 3928 pts/3 00:00:00 bash > > > > (-> session survived logout!) > > It works as expected here, the session is cleared after following your test > case. > > Are you sure you set KillUserProcesses=yes for "nue-p1" ? just to be sure: nue-p1:~ # grep -v "^#" /etc/systemd/logind.conf [Login] KillUserProcesses=yes KillExcludeUsers=root