Find the answer to your Linux question:
Results 1 to 4 of 4
Hi, i recognized that from an other Computer a Login is still active under the same User xyz. How can i exit/abort this login/session form the terminal/command line? I'm in ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2013
    Posts
    3

    Logout a session from an other computer


    Hi, i recognized that from an other Computer a Login is still active under the same User xyz. How can i exit/abort this login/session form the terminal/command line? I'm in a network and using linux not for a long time. Thank you very much.

  2. #2
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    If you want to force some user out , use pkill

    Code:
    pkill -u <username>
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

  3. #3
    Just Joined!
    Join Date
    May 2013
    Posts
    3
    What i have to entered for <username>? The user i'm actually logged in? Repeatly: From an other computer a login with the same user name is still active. I'm sorry for my English.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,763
    Sorry I don't understand your question clearly. If you want to logout from your session simply type 'logout'.

    If you want to end some other person (xyz) session. You need to be root user and then type
    Code:
    pkill -u xyz
    If you want to some session killed from remote machine-

    Code:
    ssh root@remote-ipaddress "pkill -u xyz"
    First they ignore you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -----
    FOSS India Award winning ext3fs Undelete tool www.giis.co.in. Online Linux Terminal http://www.webminal.org

Posting Permissions

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