Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!ucsd!sdcsvax!ucsdhub!hp-sdd!hplabs!hpfcdc!rml From: rml@hpfcdc.HP.COM (Bob Lenk) Newsgroups: comp.bugs.sys5 Subject: Re: setuid (euid) after setuid (uid) on System 5 Message-ID: <4930004@hpfcdc.HP.COM> Date: 4 Apr 89 22:29:55 GMT References: <123@cat.Fulcrum.BT.CO.UK> Organization: HP Ft. Collins, Co. Lines: 11 As numerous folks have said, the saved ID is overwritten when the euid of the calling process is 0. Also, in System V Release 2 (all versions that I know of) a call to setuid(0) was never honored for a non-superuser, even if the saved uid is 0. This was not documented, and I never understood or ascertained a good reason for this, and it was apparently changed in release 3. This could explain why one System V port did not work the same as another. Bob Lenk hplabs!hpfcla!rml rml%hpfcla@hplabs.hp.com