Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-23-2005, 09:18 AM   #1
LQ Newbie
Registered: Nov 2005
Location: Ontario, Canada
Posts: 1

Rep: Reputation: 0
Question cant't kill old logins on linux server

Acting as backup system administrator for next 2 weeks; on one of the linux servers "who" displays over 900 logins, some of them as old as 6 months! But "ps -ef | grep <user>" shows no running process for <user>. Can I get rid of the logins without having to re-boot the server?
Old 11-23-2005, 09:25 AM   #2
Registered: Oct 2003
Location: Ireland
Distribution: Ubuntu Breezy, Kubuntu Breezy
Posts: 78

Rep: Reputation: 15

"To kill the login session, simply find the pid of *his* login shell (e.g.
bash), and 'kill -9' it. For example, I want to kill user 'carol' here: "
"root@respc-csr2:~ > ps aux |grep carol
carol 344 0.0 1.2 1828 1176 5 S May 1 0:00 -bash
root 22261 0.0 0.3 852 340 p6 S 11:54 0:00 grep carol
root@respc-csr2:~ > kill -9 344 "

Google is your friend.. most of the time.
Old 11-23-2005, 09:40 AM   #3
Senior Member
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
Or as root:

#slay <user>


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux Red Hat Advanced Server and the Kill Command rlangsto Linux - General 1 03-24-2005 12:47 PM
Limiting logins to server using pam_access Builder Linux - Enterprise 2 12-23-2004 10:42 AM
Help with Linux Server Hacks book: Turbo-mode SSH logins ToBe Linux - Security 4 12-21-2003 11:39 AM
POP3 and IMAP server logins gavinm Linux - Software 7 12-10-2003 12:06 PM
Logins main server... blither Linux - Networking 0 10-06-2003 08:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:15 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration