home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / windows / x / 14238 < prev    next >
Encoding:
Internet Message Format  |  1992-07-22  |  915 b 

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!sdd.hp.com!think.com!barmar
  2. From: barmar@think.com (Barry Margolin)
  3. Newsgroups: comp.windows.x
  4. Subject: Re: set uid bit for xterm?
  5. Date: 23 Jul 1992 05:17:15 GMT
  6. Organization: Thinking Machines Corporation, Cambridge MA, USA
  7. Lines: 12
  8. Message-ID: <14lfcrINNh3@early-bird.think.com>
  9. References: <1992Jul22.135044.16457@verdix.com>
  10. NNTP-Posting-Host: gandalf.think.com
  11.  
  12. In article <1992Jul22.135044.16457@verdix.com> grega@verdix.com (Greg Alonso) writes:
  13. >If that is the case, why can I delete an xterm process after it is
  14. >spawned?  Isn't it owned by root when it is running?
  15.  
  16. After it does the stuff that needs root access (changing the pty ownership,
  17. filling in /etc/utmp) it calls setuid(2) to revert to the invoker's uid.
  18. When it does this, you can kill it.
  19. -- 
  20. Barry Margolin
  21. System Manager, Thinking Machines Corp.
  22.  
  23. barmar@think.com          {uunet,harvard}!think!barmar
  24.