Browse this blog

Tuesday, December 1, 2009

Linux - Kick users via console

If you have inactive users on your computer and you want to kick him, there is a very simple solution:

1) Login as root:
sudo -s

2) Displaying all processes, because the inactive user has a process-id:
ps -aux

3) You will see something like that:
1000 2626 0.0 1.1 14920 2176 ? S 19:28 0:00 sshd: ****@pts/1

4) The second number is the process-id, which must be killed to kick the user:
kill "process-id"

5) Finished! 

No comments:

Post a Comment