home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!olivea!charnel!sifon!CC.UMontreal.CA!IRO.UMontreal.CA!matrox!altitude!Nyongwa.CAM.ORG!steve
- From: steve@Nyongwa.CAM.ORG (Steve M. Robbins)
- Newsgroups: comp.os.linux
- Subject: Re: logout updating who display
- Message-ID: <BxzyuL.Hz5@Nyongwa.CAM.ORG>
- Date: 20 Nov 92 04:23:08 GMT
- References: <1992Nov18.231159.3508@athena.mit.edu> <1992Nov19.033733.14948@unislc.uucp>
- Organization: Chiral Symmetry Breaking, Inc.
- Lines: 27
-
- In article <1992Nov19.033733.14948@unislc.uucp> erc@unislc.uucp (Ed Carp) writes:
- >Craig Metz (vaz@eagle.TC.cornell.edu) wrote:
- >
- >: Might I ask exactly what program updates the /etc/utmp file such that
- >: users who have logged out don't show up as logged in anymore? I installed SLS
- >: and my system handled this procedure properly, but since installing poe-IGL
- >: and admutils (latest versions), my system does not properly handle updating
- >: the utmp file when a user logs out to reflect the user not being logged in any
- >: more. Does anyone have any suggestions as to how this problem may be fixed?
- >
- >I think init does. What happens is, getty spawns login which writes an entry
- >to /etc/utmp, then spawns a shell. When the shell dies, init sees it, takes
- >the ttyslot() record out of /etc/utmp, and appends it to /etc/wtmp. At least,
- >that's the way it usually works. :)
-
- Actually, poe's simpleinit doesn't touch utmp. The getty programs though, do,
- as does login. Getty writes a LOGIN_PROCESS entry, and login changes it to
- a USER_PROCESS. So last and who scan only for the USER_PROCESS entries.
-
- And both getty and login write entries to wtmp.
-
- >Ed Carp erc@apple.com, erc@saturn.upl.com 801/538-0177
-
- --
- Steve Robbins -- steve@nyongwa.cam.org
- I asked Hank Williams "how lonely does it get?"
- Hank Williams hasn't answered yet.
-