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