Xref: utzoo comp.unix.xenix:7980 comp.unix.questions:16876 comp.unix.wizards:18604 Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!uunet!van-bc!skl From: skl@van-bc.UUCP (Samuel Lam) Newsgroups: comp.unix.xenix,comp.unix.questions,comp.unix.wizards Subject: setuid() in Xenix 2.3.2 Summary: Trying to port FTP to Xenix and need to imitate BSD seteuid() call. Keywords: setuid(), Xenix, FTP, BSD, seteuid() Message-ID: <28@van-bc.UUCP> Date: 10 Oct 89 15:24:20 GMT Reply-To: skl@wimsey.bc.ca (Samuel Lam) Followup-To: comp.unix.xenix,comp.unix.questions Organization: Balliffe International, Vancouver, B.C., Canada Lines: 28 Could some setuid() or Xenix expert please help? I am trying to port the letest (Rick Adams) version of the Berkeley FTP server to run on SCO Xenix 386 2.3.2 and need to imitate the seteuid() calls in the code with setuid()'s, since Xenix doesn't have seteuid(). What I need to be able to do is essentially the following: - Start with euid(root). - ... - Switch to euid(arbitrary_uid). - ... - Revert back to euid(root). - ... Through the course of the program, the real uid can either remain root or switches following the euid. I have already spent part of the night trying out various schemes which I thought would work, but none of them did -- I always had trouble switching back to root after switching to the arbitrary uid. Could someone tell me how this is done? Thank you very much for your help. ...Sam -- Samuel Lam or {uunet,ubc-cs}!wimsey.bc.ca!skl