Find the answer to your Linux question:
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.
  1. #1
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,126

    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

  2. #2
    Linux Guru anomie's Avatar
    Join Date
    Mar 2005
    Location
    Texas
    Posts
    1,692
    So this is a case where you want to kick off just one user, right?

    An example with ssh you can use is:
    Code:
    ps -e | grep ssh | grep user_name_here
    Then look at his PID and
    Code:
    kill PID_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.

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •