LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-23-2005, 10:18 AM   #1
cayer
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, 10:25 AM   #2
siphi
Member
 
Registered: Oct 2003
Location: Ireland
Distribution: Ubuntu Breezy, Kubuntu Breezy
Posts: 78

Rep: Reputation: 15
try

"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 "

From http://lists.suse.com/archive/suse-l...-May/0974.html
Google is your friend.. most of the time.
 
Old 11-23-2005, 10:40 AM   #3
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 55
Or as root:

#slay <user>
 
  


Reply


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 01:47 PM
Limiting logins to server using pam_access Builder Linux - Enterprise 2 12-23-2004 11:42 AM
Help with Linux Server Hacks book: Turbo-mode SSH logins ToBe Linux - Security 4 12-21-2003 12:39 PM
POP3 and IMAP server logins gavinm Linux - Software 7 12-10-2003 01:06 PM
Logins main server... blither Linux - Networking 0 10-06-2003 09:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:45 PM.

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