home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / linux / 17304 < prev    next >
Encoding:
Internet Message Format  |  1992-11-20  |  1.7 KB

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