Path: utzoo!utgpu!cunews!micor!latour!ecicrl!clewis From: clewis@ferret.ocunix.on.ca (Chris Lewis) Newsgroups: news.software.b Subject: Re: C News and setuid(geteuid) Message-ID: <1282@ecicrl.ocunix.on.ca> Date: 6 Feb 91 06:49:20 GMT References: <1991Feb2.060633.23602@zoo.toronto.edu> <4f948f06.1bc5b@pisa.ifs.umich.edu> Organization: Elegant Communications Inc., Ottawa, Canada Lines: 17 In article <4f948f06.1bc5b@pisa.ifs.umich.edu> rees@citi.umich.edu (Jim Rees) writes: >In Berkeley (real) Unix, setuid() sets both real and effective IDs. >In System V, it doesn't. I don't remember if there is any way to set the >real user id in System V. If your effective ID is root, setuid(anything) will work and will set both the real and effective id's. That's what the Cnews kludge setnewsids does, and is how su manages to do it. >Seems to me there was some stupid "security" reason for this, I'd sure love to know what it was - I've had to work around this many times. -- Chris Lewis, Phone: (613) 832-0541, Internet: clewis@ferret.ocunix.on.ca UUCP: uunet!mitel!cunews!latour!ecicrl!clewis Moderator of the Ferret Mailing List (ferret-request@eci386) Psroff enquiries: psroff-request@eci386, current patchlevel is *7*.