Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!lll-winken!sun-barr!newstop!sun!coherent!mrspoc!kayvan From: kayvan@mrspoc.Transact.COM (Kayvan Sylvan) Newsgroups: comp.unix.xenix Subject: Re: <28@van-bc.UUCP> Message-ID: Date: 20 Oct 89 18:07:07 GMT References: <28@van-bc.UUCP> <-1087513@hal6000> Sender: kayvan@mrspoc.Transact.COM (Kayvan Sylvan) Organization: Transact Software, Inc. Lines: 21 In-reply-to: iv@hal6000.UUCP's message of 16 Oct 89 17:01:00 GMT >>>>> "iv" == iv writes: iv> So, though XENIX would accomodate you if you were using just two UIDs, iv> the fact you wish to be many users via root spells doom for this iv> technique. The only way to do what you wish here is to fork iv> sub-processes, setuid(user) there and exit when done with that user. iv> (I know, I know, oooh, ick!) The 'su' program allows people to change to more than two users. It works because it is setuid to root. I have programs that use setuid() and setgid() that work fine. They are all setuid to root (chmod mode 4711) and have to be crafted with extreme caution to avoid security holes. ---Kayvan -- Kayvan Sylvan @ Transact Software, Inc. -*- Los Altos, CA (415) 961-6112 Internet: kayvan@Transact.COM -*- UUCP: ...!{apple,pyramid,mips}!mrspoc!kayvan = Interested in story telling group? Mail yarn-spinners-request@transact.com =