home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2001 May / SGI IRIX Base Documentation 2001 May.iso / usr / share / catman / p_man / cat3c / seteuid.z / seteuid
Encoding:
Text File  |  1998-10-20  |  2.1 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SSSSEEEETTTTEEEEUUUUIIIIDDDD((((3333CCCC))))                                                        SSSSEEEETTTTEEEEUUUUIIIIDDDD((((3333CCCC))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      seteuid, setruid, setegid, setrgid - set user and group IDs
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _####_iiii_nnnn_cccc_llll_uuuu_dddd_eeee _<<<<_uuuu_nnnn_iiii_ssss_tttt_dddd_...._hhhh_>>>>
  13.  
  14.      iiiinnnntttt sssseeeetttteeeeuuuuiiiidddd((((uuuuiiiidddd____tttt eeeeuuuuiiiidddd))));;;;
  15.      iiiinnnntttt sssseeeettttrrrruuuuiiiidddd((((uuuuiiiidddd____tttt rrrruuuuiiiidddd))));;;;
  16.  
  17.      iiiinnnntttt sssseeeetttteeeeggggiiiidddd((((ggggiiiidddd____tttt eeeeggggiiiidddd))));;;;
  18.      iiiinnnntttt sssseeeettttrrrrggggiiiidddd((((ggggiiiidddd____tttt rrrrggggiiiidddd))));;;;
  19.  
  20. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  21.      _s_e_t_e_u_i_d (_s_e_t_e_g_i_d) sets the effective user ID (group ID) of the current
  22.      process.
  23.  
  24.      _s_e_t_r_u_i_d (_s_e_t_r_g_i_d) sets the real user ID (group ID) of the current
  25.      process.
  26.  
  27.      These calls are only permitted to the super-user or if the argument is
  28.      the real or effective ID.
  29.  
  30. DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
  31.      Zero is returned if the user (group) ID is set.  Otherwise -1 is returned
  32.      and _e_r_r_n_o is set to EPERM if the caller is not the super-user and a
  33.      disallowed ID is used.
  34.  
  35. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  36.      setreuid(2), setregid(2), setuid(2), setgid(2), getuid(2), getgid(2).
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.