Return to BSD News archive
Xref: sserve comp.unix.solaris:644 comp.unix.bsd:8375 Path: sserve!manuel.anu.edu.au!munnari.oz.au!uunet!auspex-gw!guy From: guy@Auspex.COM (Guy Harris) Newsgroups: comp.unix.solaris,comp.unix.bsd Subject: Re: Solaris 1.1 vs. Solaris 2.0 (BSD vs AT&T) Message-ID: <15576@auspex-gw.auspex.com> Date: 20 Nov 92 00:11:19 GMT References: <1992Nov15.014513.28154@nobeltech.se> <1992Nov15.035135.15514@ra.msstate.edu> <1992Nov19.165146.22006@syma.sussex.ac.uk> Sender: news@auspex-gw.auspex.com Followup-To: comp.unix.solaris Organization: Auspex Systems, Santa Clara Lines: 15 Nntp-Posting-Host: auspex.auspex.com >Sequent uses a BSD kernel, very thinly disguised. Eg. the following does not >work in setuid program. Does it work under Dynix/PTX? I.e., is Dynix/PTX also a BSD kernel, even though they claim it to be an SV system? >real = getuid() ; >eff = geteuid() ; >setuid(real) ; >system("..") ; >setuid(eff) ; /* This fails, whereas in SysV it works */ Note that it also works if you compile it with "/usr/5bin/cc" in SunOS 4.x (and even works if you compile with "/usr/bin/cc", if you use "seteuid()" to set the effective UID).