Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: zhmte@zh014.ubs.ubs.ch (Andreas Meister)
Subject: Re: how to log out a ghost user?
Date: 1995/12/29	[thread overview]
Message-ID: <4c0fkp-5vg@svstch.ubs.ch> (raw)
In-Reply-To: 4brksv$d3r@amhux3.amherst.edu

PAUL D. CHAPIN (pdchapin@unix.amherst.edu) wrote:
: Scott Lipcon (slipcon@tiac.net) wrote:
: 
: : Hi... Every once in a while, a user will stay logged in after he has 
: : logged out of the system.  All my users log on from the console right now 
: : (Its not on a network, and "all my users" consists of me and my 
: : brother!)  What happens is that they are in the "w" output, but there are 
: : no processes owned by them, and there are no processes owned by the pty 
: : they are supposedly on.  The only thing that seems to log them out is a 
: : reboot.
: 
: This is a more general problem.  I have it with users connecting over
: the network.  It's unclear what causes the problem or how to get rid
: of it.  Fortunately, it doesn't appear that these ghosts use any
: resources; I see their terminal lines being reused for example.
: 

Look at how 'w' works: (ok, I tried it on SunOS 5, but I'm sure DEC's Unix
is similar in this)

'w' opens /var/adm/utmp and displays the valid records in there. utmp (and
wtmp) are written by login upon login and init upon logout. If init cannot 
write these files, the usera seem still 'logged in' altough disconnected.

Such 'ghost users' result in unpropperly terminated sessions.

Andreas

--
___________________________________________________________________________
Andreas Meister, Union Bank of Switzerland, Lausanne, Switzerland
e-mail: Andreas.Meister@ubs.ch, zhmte@svewbl01.bussigny.lausanne.ubs.ch
phone: +41 21 702 88 23________here's one straight from the factory________
			



  reply	other threads:[~1995-12-29  5:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-12-25  5:00 how to log out a ghost user? Scott Lipcon
1995-12-27  5:00 ` PAUL D. CHAPIN
1995-12-29  5:00   ` Andreas Meister [this message]
1996-01-03  5:00 ` g0daeniken
1996-01-04  5:00   ` Gerald Feldman
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox