1836417 Members
2727 Online
110100 Solutions
New Discussion

Zombie user killing

 
SOLVED
Go to solution
Vincent Farrugia
Honored Contributor

Zombie user killing

A quick question,

We have a K-Class which has a user appearing when "who" is entered, but no process is attached to it. Seems like it remained there for some reason and we want to get rid of it. Is there a way to kill this user?
Tape Drives RULE!!!
4 REPLIES 4
Craig Rants
Honored Contributor
Solution

Re: Zombie user killing

This occurs when who shows a user as logged on but grep is showing nothing. Run these few commands and you should be good.
1. cd /usr/lib/acct
2. ./fwtmp < /etc/utmp > /tmp/utmp
3. edit /tmp/utmp changing 5th column to 8 for ghost user
4. ./fwtmp -ic < /tmp/utmp > /etc/utmp

Gl,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
harry d brown jr
Honored Contributor

Re: Zombie user killing

Vincent,

Does it show up when doing a ps -ef?

If not, follow Craigs procedures.

live free or die
harry
Live Free or Die
Paula J Frazer-Campbell
Honored Contributor

Re: Zombie user killing

Hi

If it it a Zombie then it is dead but will not lie down.

Killing the parent process sometimes works - but be careful what the parent process is.

A reboot will get rid of the Zombie but if it is not using cpu then wait until net normal reboot.


HTH

Paula

If you can spell SysAdmin then you is one - anon
Vincent Farrugia
Honored Contributor

Re: Zombie user killing

Thanks guys, problem solved.
Tape Drives RULE!!!