Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* how to log out a ghost user?
@ 1995-12-25  5:00 Scott Lipcon
  1995-12-27  5:00 ` PAUL D. CHAPIN
  1996-01-03  5:00 ` g0daeniken
  0 siblings, 2 replies; 5+ messages in thread
From: Scott Lipcon @ 1995-12-25  5:00 UTC (permalink / raw)



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.

thanks
Scott
--
+-----------------------------------+ GCS/T d? H- g+(?) p3 !au a-- w+ v+(++)(*) 
|Scott Lipcon [SLipcon@max.tiac.net]| C++(++++) UB P+ L>++ 3 N++ W--- M++ -po+ 
|http://www.tiac.net/users/slipcon/ | Y+ t--- 5-- j+ R- G'''' tv- b+ D+ B--- 
+-----------------------------------+ e-(*) v+ h! r* n- y?



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to log out a ghost user?
  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
  1996-01-03  5:00 ` g0daeniken
  1 sibling, 1 reply; 5+ messages in thread
From: PAUL D. CHAPIN @ 1995-12-27  5:00 UTC (permalink / raw)


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.

--

Paul Chapin
Unix Systems Manager
Amherst College




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to log out a ghost user?
  1995-12-27  5:00 ` PAUL D. CHAPIN
@ 1995-12-29  5:00   ` Andreas Meister
  0 siblings, 0 replies; 5+ messages in thread
From: Andreas Meister @ 1995-12-29  5:00 UTC (permalink / raw)


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________
			



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to log out a ghost user?
  1995-12-25  5:00 how to log out a ghost user? Scott Lipcon
  1995-12-27  5:00 ` PAUL D. CHAPIN
@ 1996-01-03  5:00 ` g0daeniken
  1996-01-04  5:00   ` Gerald Feldman
  1 sibling, 1 reply; 5+ messages in thread
From: g0daeniken @ 1996-01-03  5:00 UTC (permalink / raw)


In article <4bkst2$4dm@sundog.tiac.net>, slipcon@tiac.net (Scott Lipcon) writes:
> 
> 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.

We've already had this one under OSF/1 2.0 ... and now it's back again
under 3.2C! (upgraded last week)

Today, I've reported this problem to our local DEC support: There is
a patch Nr. OSF350-088 which is supposed to fix it. 

regards,
Eric



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: how to log out a ghost user?
  1996-01-03  5:00 ` g0daeniken
@ 1996-01-04  5:00   ` Gerald Feldman
  0 siblings, 0 replies; 5+ messages in thread
From: Gerald Feldman @ 1996-01-04  5:00 UTC (permalink / raw)
  To: g0daeniken

g0daeniken@sgcl1.unisg.ch wrote:
> In article <4bkst2$4dm@sundog.tiac.net>, slipcon@tiac.net (Scott Lipcon) writes:
> >
> > 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
<snip>
> >  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.
> 
> We've already had this one under OSF/1 2.0 ... and now it's back again
> under 3.2C! (upgraded last week)
> 
> Today, I've reported this problem to our local DEC support: There is
> a patch Nr. OSF350-088 which is supposed to fix it.
The problem here is that there are several concurrent processes who
write entries to the /var/adm/utmp file. There are some cases where 
the locking mechanism fails to prevent 2 processes from updating the
file. This is a rare case, but does occur in a large timesharing
environment. The utmp file is the file that keeps track of users. The
fix involved changes to the system run time libraries, as well as the
login, getty and init commands. 
-- 
Jerry Feldman              Unix Systems Group
Digital Equipment Corp.    Mailstop: ZKO3-3/Y25 
110 Spitbrook Rd.          gaf@zk3.dec.com
Nashua, NH 03062-9987      (603)881-2970



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1996-01-04  5:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
1996-01-03  5:00 ` g0daeniken
1996-01-04  5:00   ` Gerald Feldman

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