Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!prcrs!mcl!wrwalke From: wrwalke@mcl (wrwalke) Newsgroups: comp.unix.questions Subject: Re: doing setreuid with setuid in modern sysv Summary: set(?)uid() in BSD Message-ID: <116@mcl.UUCP> Date: 14 Jan 90 21:52:29 GMT References: <90Jan14.130354est.2125@neat.cs.toronto.edu> Organization: PRC Realty Systems, McLean, VA Lines: 19 In article <90Jan14.130354est.2125@neat.cs.toronto.edu>, rayan@cs.toronto.edu (Rayan Zachariassen) writes: > ISC 386/ix (SVR3.2) and IRIX3.2 (SVR3.1)) that setuid() behaves the same > way as on BSD systems and resets both real and effective uid (good) but > that there is no saved uid used for permissions checking later on. > on some BSD (maybe a bug/feature of the port) systems, the real and effective uids don't both change. on the CCI supplied port of 4.2 for the VAX only euid would change, allowing resumption later on. on the port for the Power6, both would change and there was no way to find out what the original uid was. just my $.02 bill. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Bill Walker -- PRC Realty (Reality) Systems -- McLean VA uunet!prcrs!wrwalke uunet!prcrs!mcl!wrwalke (wrwalke@prc.com -soon to be) Author, editor, and publisher of my own opinions, all rights reserved.