home *** CD-ROM | disk | FTP | other *** search
-
- SETUID(3) UNIX Programmer's Manual SETUID(3)
-
- NNAAMMEE
- sseettuuiidd, sseetteeuuiidd, sseettrruuiidd, sseettggiidd, sseetteeggiidd, sseettrrggiidd - set user and group
- ID
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ssyyss//ttyyppeess..hh>>
-
- _i_n_t
- sseettuuiidd(_u_i_d___t _u_i_d)
-
- _i_n_t
- sseetteeuuiidd(_u_i_d___t _e_u_i_d)
-
- _i_n_t
- sseettrruuiidd(_u_i_d___t _r_u_i_d)
-
- _i_n_t
- sseettggiidd(_g_i_d___t _g_i_d)
-
- _i_n_t
- sseetteeggiidd(_g_i_d___t _e_g_i_d)
-
- _i_n_t
- sseettrrggiidd(_g_i_d___t _r_g_i_d)
-
- DDEESSCCRRIIPPTTIIOONN
- The sseettuuiidd() function (sseettggiidd()) sets both the real and effective user ID
- (group ID) of the current process as specified.
-
- The sseetteeuuiidd() function (sseetteeggiidd()) sets the effective user ID (group ID)
- of the current process.
-
- The sseettrruuiidd() function (sseettrrggiidd()) sets the real user ID (group ID) of
- the current process.
-
- RREETTUURRNN VVAALLUUEESS
- Upon success, these functions return 0; otherwise -1 is returned.
-
- If the user is not the super user, or the uid specified is not the real
- or effective ID, these functions return -1.
-
- SSEEEE AALLSSOO
- setreuid(2), setregid(2), getuid(2), getgid(2)
-
- HHIISSTTOORRYY
- A sseettuuiidd() and sseettggiidd() syscall appeared in Version 6 AT&T UNIX.
-
- 4.2 Berkeley Distribution April 19, 1991 1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-