Results 1 to 2 of 2
I've been googling a bit, and I'm new to the server thing (at least in *n?x) but I'm not sure about how to log another user off. I am allowing ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 10-09-2005 #1Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
Logging other users off
I've been googling a bit, and I'm new to the server thing (at least in *n?x) but I'm not sure about how to log another user off. I am allowing some remote usage through ssh and VNC for the purposes of learning. I often check out who is on but I'm not sure how to boot a user off if needs be. I'd rather ask now than wait until I need to know...

users doesn't help, can find any logoff or disconnect command. Any help appreciated as always
- 10-09-2005 #2
So this is a case where you want to kick off just one user, right?
An example with ssh you can use is:
Then look at his PID andCode:ps -e | grep ssh | grep user_name_here
There are a lot of different ways to accomplish the same thing. But the gist of it is that you are killing his ssh connection/process.Code:kill PID_here
Now if you want to keep him off, that's a different story. That may consist of:
* Locking his account altogether.
* Blocking his IP.
* Blocking his user name from using the sshd service.


Reply With Quote
