M
M
MaxGoodWork2021-02-04 18:25:55
Debian
MaxGoodWork, 2021-02-04 18:25:55

Linux: how to logout if there is no user access?

I just noticed that users returned 11 identical users. Presumably these are sessions that ended unexpectedly for me (SSH idle for a while), how do I end all these sessions? root access is.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexey Cheremisin, 2021-02-04
@leahch

Output who is currently logged in according to FILE. If FILE is not
specified, use /var/run/utmp . /var/log/wtmp as FILE is common.

If there are no suspicious processes - just score, it happens. If there is, kill the processes, but sometimes that doesn't help either. Of course, you can clean these files with pens, but they are in a "non-human format".

U
unseriously, 2021-02-04
@unseriously

you can find processes and bang them:
ps aux | grep <process name> - find out the PID
kill -9 PID

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question