1748268 Members
3727 Online
108760 Solutions
New Discussion юеВ

Duplicate terminal id

 
Jim Weidt
Occasional Contributor

Duplicate terminal id

Hello,
It appears I have a stale terminal connection to for id devallb to terminal pts/tj.

/home/smithm3/annc(tst3)$ who am i
smithm3 pts/tj Jun 27 07:46
devallb pts/tj Mar 19 08:24

How do I clean this up?

Thanks,
Jim Weidt


a
7 REPLIES 7
Jeeshan
Honored Contributor

Re: Duplicate terminal id

check with this command

#who -u

then kill the PID.
a warrior never quits
Jim Weidt
Occasional Contributor

Re: Duplicate terminal id

The related PID is not running.
a
TTr
Honored Contributor

Re: Duplicate terminal id

You can only clean this up if you fix inconsistencies in the utmp and wtmp file(s). There is nothing wrong with what you see, the records in the ?tmp files are not complete becasue of improper session logouts and disconnects.

Take a look at

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1156946
Jeeshan
Honored Contributor

Re: Duplicate terminal id

so, nothing to do with it.
a warrior never quits
Jeeshan
Honored Contributor

Re: Duplicate terminal id

so, nothing to do with it. its not a problem at all.
a warrior never quits
Bill Hassell
Honored Contributor

Re: Duplicate terminal id

utmp is a collection of logins, logouts (and reboots, etc) and who is just trying to guess whether a user's session exists. Since users often just kill jobs or unplug laptops, no logout records exist for some sessions. ps will tell what is really running:

ps -f -u devallb,smithm3

utmp will be fixed (actually, zeroed out) at the next reboot. who will not provide a reliable picture of sessions.


Bill Hassell, sysadmin
Jim Weidt
Occasional Contributor

Re: Duplicate terminal id

Clearing utmp fixed our problem.
Thanks!
a