LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant't kill old logins on linux server (https://www.linuxquestions.org/questions/linux-newbie-8/cantt-kill-old-logins-on-linux-server-385815/)

cayer 11-23-2005 09:18 AM

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?

siphi 11-23-2005 09:25 AM

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.

nx5000 11-23-2005 09:40 AM

Or as root:

#slay <user>


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