Find the answer to your Linux question:
Results 1 to 6 of 6
I m logged in as root and want to logout some other user on some other terminal. How can I accomplish that....
  1. #1
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493

    forcing a user to logout

    I m logged in as root and want to logout some other user on some other terminal. How can I accomplish that.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  2. #2
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Give him a warning message with "write" so he has time to save his work.
    After the countdown, kill the daemon process that serves his connection (ssh, telnet,...).
    Debian GNU/Linux -- You know you want it.

  3. #3
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    thanks for replying
    but I m working on my on pc . The tty2 is stuck and has become unresponsive. So wanted to kill that tty. Is there a way out.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  4. #4
    Linux Engineer GNU-Fan's Avatar
    Join Date
    Mar 2008
    Posts
    935
    Yes, just kill the process that serves the connection.
    The connection will be closed automatically after this.
    Debian GNU/Linux -- You know you want it.

  5. #5
    Linux User vickey_20's Avatar
    Join Date
    Mar 2009
    Location
    Mumbai, India
    Posts
    493
    suppose there is a user named vickey on my pc
    then how do i kill the tty on which he is logged on.
    Only if I could understand the man pages
    Registered Linux user #492640
    OS: RHEL4,5 ,RH 9,Ubuntu

  6. #6
    Linux User
    Join Date
    May 2009
    Location
    Big River, Sask, Canada
    Posts
    342
    ps aux | less
    spacebar pages through less
    find the tty that vickey is using, find process ID
    q to quit less
    kill PID
    Linux Command Directory - O'Reilly Media
    Registered Linux User #420832

Posting Permissions

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