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