Operating System - HP-UX
1833777 Members
1918 Online
110063 Solutions
New Discussion

User shows in 'who', but process does not exist.

 
SOLVED
Go to solution
John Demeny
Advisor

User shows in 'who', but process does not exist.

User shows when the 'who' command is type, but cannot kill user because process does not exist. Short of rebooting, how can I get system to realize he is no longer logged in?

who -u -H | sort

NAME LINE TIME IDLE PID
berglugr pts/tf Mar 10 06:18 4:57 7376

kill -9 7376
kill: 7376: The specified process does not exist.

4 REPLIES 4
Michael Schulte zur Sur
Honored Contributor

Re: User shows in 'who', but process does not exist.

Hi,

what do you see from
ps -ef | grep 7376
?

greetings,

Michael
Sridhar Bhaskarla
Honored Contributor
Solution

Re: User shows in 'who', but process does not exist.

Hi,

This is due to an incomplete entry in utmp file often caused by non-gracious termination of the sessions. I would try the following.

/usr/sbin/acct/fwtmp < /etc/utmp > /tmp/utmp.txt
vi /tmp/utmp.txt
Edit it and remove the bogus entry and save.
Convert it back to utmp binary file.
/usr/sbin/acct/fwtmp -ic < /tmp/utmp.txt > /tmp/utmp
Backup your /etc/utmp in case needed and replace with the modified one.
mv /tmp/utmp /etc

Try again.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
James A. Donovan
Honored Contributor

Re: User shows in 'who', but process does not exist.

This usually means that the /etc/utmp file is corrupt. You rename the file and reboot. It should be rebuilt automatically.
Remember, wherever you go, there you are...
Michael Tully
Honored Contributor

Re: User shows in 'who', but process does not exist.

We used to have this problem every second day. The real answer is to make sure that you install patch PHNE_24829 and also make sure that you include the special instructions.
Anyone for a Mutiny ?