Claus-Theodor Riegg
5 years
Marius Schuller
6 years
Andreas Herz
7 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
8 years
Marius Schuller
9 years
Claus-Theodor Riegg
9 years
Claus-Theodor Riegg
9 years
Claus-Theodor Riegg
9 years
Henning Koch
10 years
Thomas Eisenbarth
11 years

loginctl: Failed to look up user $USER: No such process

Updated . Posted . Visible to the public.

When you get this error message from e.g. loginctl show-user [...] after you deleted a user from your system:

# $USER is the username you deleted
loginctl: Failed to look up user $USER: No such process

or if there are a lot of open session with status=Closing, which return Could not kill session: No such file or directory when you try to kill them

then you can either switch to a Linux distribution without systemd or restart systemd-logind to fix this problem.

systemctl restart systemd-logind
Last edit
Ruben Aleman
Keywords
kill-session
License
Source code in this card is licensed under the MIT License.