home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / solaris / 340 < prev    next >
Encoding:
Internet Message Format  |  1992-11-19  |  1.1 KB

  1. Xref: sparky comp.unix.solaris:340 comp.unix.bsd:9097
  2. Path: sparky!uunet!auspex-gw!guy
  3. From: guy@Auspex.COM (Guy Harris)
  4. Newsgroups: comp.unix.solaris,comp.unix.bsd
  5. Subject: Re: Solaris 1.1 vs. Solaris 2.0 (BSD vs AT&T)
  6. Message-ID: <15576@auspex-gw.auspex.com>
  7. Date: 20 Nov 92 00:11:19 GMT
  8. References: <1992Nov15.014513.28154@nobeltech.se> <1992Nov15.035135.15514@ra.msstate.edu> <1992Nov19.165146.22006@syma.sussex.ac.uk>
  9. Sender: news@auspex-gw.auspex.com
  10. Followup-To: comp.unix.solaris
  11. Organization: Auspex Systems, Santa Clara
  12. Lines: 15
  13. Nntp-Posting-Host: auspex.auspex.com
  14.  
  15. >Sequent uses a BSD kernel, very thinly disguised. Eg. the following does not
  16. >work in setuid program. 
  17.  
  18. Does it work under Dynix/PTX?  I.e., is Dynix/PTX also a BSD kernel,
  19. even though they claim it to be an SV system?
  20.  
  21. >real = getuid() ;
  22. >eff = geteuid() ;
  23. >setuid(real) ;
  24. >system("..") ;
  25. >setuid(eff) ; /* This fails, whereas in SysV it works */
  26.  
  27. Note that it also works if you compile it with "/usr/5bin/cc" in
  28. SunOS 4.x (and even works if you compile with "/usr/bin/cc", if you use
  29. "seteuid()" to set the effective UID).
  30.