Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!ames!vsi1!altos!megadon!clp From: clay@titan.tsd.arlut.utexas.edu (Clay Johnson) Newsgroups: comp.unix Subject: sun/unix/c problem Message-ID: <2177@megadon.UUCP> Date: 10 Oct 90 04:05:54 GMT Sender: clp@megadon.UUCP Organization: Applied Research Laboratories, UT Austin. Lines: 9 Approved: clp@megadon.UUCP Posted-Date: 5 Oct 90 19:59:01 GMT Once a program that executes in set-user ID mode has changed its effective uid to the real uid, how can it change it back? setreuid(2) (sun 4.0 documentation) says that this can be done by restoring the saved set-user ID from execve(2), but execve(2) does not explain how to do it. Thank you.