From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,4103fba0c2acbf0c X-Google-Attributes: gidfee84,public From: zhmte@zh014.ubs.ubs.ch (Andreas Meister) Subject: Re: how to log out a ghost user? Date: 1995/12/29 Message-ID: <4c0fkp-5vg@svstch.ubs.ch>#1/1 X-Deja-AN: 123134492 references: <4brksv$d3r@amhux3.amherst.edu> organization: Union Bank of Switzerland newsgroups: comp.unix.osf.osf1 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________