home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 8 / FreshFishVol8-CD1.bin / gnu / man / cat3 / setuid.0 < prev    next >
Text File  |  1993-12-07  |  2KB  |  67 lines

  1.  
  2. SETUID(3)                  UNIX Programmer's Manual                  SETUID(3)
  3.  
  4. NNAAMMEE
  5.      sseettuuiidd, sseetteeuuiidd, sseettrruuiidd, sseettggiidd, sseetteeggiidd, sseettrrggiidd - set user and group
  6.      ID
  7.  
  8. SSYYNNOOPPSSIISS
  9.      ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
  10.  
  11.      _i_n_t
  12.      sseettuuiidd(_u_i_d___t _u_i_d)
  13.  
  14.      _i_n_t
  15.      sseetteeuuiidd(_u_i_d___t _e_u_i_d)
  16.  
  17.      _i_n_t
  18.      sseettrruuiidd(_u_i_d___t _r_u_i_d)
  19.  
  20.      _i_n_t
  21.      sseettggiidd(_g_i_d___t _g_i_d)
  22.  
  23.      _i_n_t
  24.      sseetteeggiidd(_g_i_d___t _e_g_i_d)
  25.  
  26.      _i_n_t
  27.      sseettrrggiidd(_g_i_d___t _r_g_i_d)
  28.  
  29. DDEESSCCRRIIPPTTIIOONN
  30.      The sseettuuiidd() function (sseettggiidd()) sets both the real and effective user ID
  31.      (group ID) of the current process as specified.
  32.  
  33.      The sseetteeuuiidd() function (sseetteeggiidd()) sets the effective user ID (group ID)
  34.      of the current process.
  35.  
  36.      The sseettrruuiidd() function (sseettrrggiidd()) sets the real user ID (group ID) of
  37.      the current process.
  38.  
  39. RREETTUURRNN VVAALLUUEESS
  40.      Upon success, these functions return 0; otherwise -1 is returned.
  41.  
  42.      If the user is not the super user, or the uid specified is not the real
  43.      or effective ID, these functions return -1.
  44.  
  45. SSEEEE AALLSSOO
  46.      setreuid(2),  setregid(2),  getuid(2),  getgid(2)
  47.  
  48. HHIISSTTOORRYY
  49.      A sseettuuiidd() and sseettggiidd() syscall appeared in Version 6 AT&T UNIX.
  50.  
  51. 4.2 Berkeley Distribution       April 19, 1991                               1
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.