Path: utzoo!mnetor!tmsoft!torsqnt!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!samsung!munnari.oz.au!metro!suphys.physics.su.OZ.AU!glenn From: glenn@suphys.physics.su.OZ.AU (Glenn Geers) Newsgroups: comp.unix.sysv386 Subject: system(3) behaviour under Esix rev. D Message-ID: <1991Feb17.214252.27336@metro.ucc.su.OZ.AU> Date: 17 Feb 91 21:42:52 GMT Sender: news@metro.ucc.su.OZ.AU Reply-To: glenn@suphys.physics.su.OZ.AU (Glenn Geers) Organization: School of Physics, Uni of Sydney, Australia. Lines: 22 Nntp-Posting-Host: suphys.physics.su.oz.au Hi, I've got a program that is setuid root that runs a system command via the system(3) library routine. The problem is that I need the effective uid of the calling program to be inherited by the process run by system(3). Esix does not seem to do this. If I use my own fork/exec sequence I have no problems. The question is: Should system(3) really set the uid of the process it runs to the effective uid of the invoking program or to its real uid? I have RTFM'd and the former case seems correct but the latter is occuring. Any thoughts appreciated. Thanks, Glenn glenn@qed.physics.su.oz.au -- Glenn Geers | "So when it's over, we're back to people. Department of Theoretical Physics | Just to prove that human touch can have The University of Sydney | no equal." Sydney NSW 2006 Australia | - Basia Trzetrzelewska, 'Prime Time TV'