home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / std_unix / mod.std.unix.v5 / text0042.txt < prev    next >
Encoding:
Text File  |  1987-06-30  |  936 b   |  26 lines

  1. >From: seismo!gatech!akgua!pegasus!hansen (Tony Hansen)
  2. Sat Feb  8 00:48:16 1986
  3. Date: Sat, 8 Feb 86 00:31:29 EST
  4. Organization: AT&T-IS Labs, Lincroft, NJ
  5.  
  6. < The answer is only to do limited operations when in setuid.  The best
  7. < way to do this would be to allow processes to painlessly shift back and
  8. < forth between their real-uid and effective-uid.  This is allowed, but
  9. < not documented on BSD, but appears not to be allowed at all on SV.
  10.  
  11. System Vr2 allows a non-root setuid process to call setuid(2) with either
  12. the real uid or the saved effective uid, allowing the process to painlessly
  13. switch back and forth. This change occurred between System V and Vr2.
  14.  
  15. One slight difference is that Vr2 non-root setuid(2) sets the effective uid
  16. and not the real uid. Only a root setuid(2) will change the real uid as
  17. well; which can't then be changed back.
  18.  
  19.                     Tony Hansen
  20.                     ihnp4!pegasus!hansen
  21.  
  22.  
  23.  
  24. Volume-Number: Volume 5, Number 43
  25.  
  26.