home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / sun / admin / 8051 < prev    next >
Encoding:
Internet Message Format  |  1992-11-08  |  1.2 KB

  1. Path: sparky!uunet!auspex-gw!guy
  2. From: guy@Auspex.COM (Guy Harris)
  3. Newsgroups: comp.sys.sun.admin
  4. Subject: Re: pty bug fix for 4.1.3?
  5. Message-ID: <15388@auspex-gw.auspex.com>
  6. Date: 7 Nov 92 19:48:53 GMT
  7. References: <1992Nov5.010756.21667@babbage.ece.uc.edu> <1992Nov5.202925.13750@afterlife.ncsc.mil> <1992Nov7.164522.26309@afterlife.ncsc.mil>
  8. Sender: news@auspex-gw.auspex.com
  9. Organization: Auspex Systems, Santa Clara
  10. Lines: 13
  11. Nntp-Posting-Host: bootme.auspex.com
  12.  
  13. >I have noticed that if you specifically type "exit" in a cmd/shelltool,
  14. >/etc/utmp IS cleaned-up.  So maybe the cmd/shelltool dies in such a way
  15. >that the underlying shell doesn't have a chance to clean up.
  16.  
  17. The underlying shell doesn't *ever* clean up; it doesn't create the
  18. "/etc/utmp" entry, nor does it destroy it.
  19.  
  20. It's possible that the underlying terminal emulator - which *does*
  21. create and destroy the "/etc/utmp" entries - is dying in a fashion
  22. wherein it doesn't clean up, or it may be that, while it runs set-UID so
  23. it has permission to create the entry, it completely gives up its
  24. set-UID privileges so that it doesn't have permission to destroy the
  25. entry, if "/etc/utmp" isn't publicly-writable.
  26.