home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fish 6
/
FreshFish_September1994.bin
/
gnu
/
man
/
cat2
/
setreuid.0
< prev
next >
Wrap
Text File
|
1993-12-07
|
1KB
|
67 lines
SETREUID(2) UNIX Programmer's Manual SETREUID(2)
NNAAMMEE
sseettrreeuuiidd - set real and effective user ID's
SSYYNNOOPPSSIISS
##iinncclluuddee <<uunniissttdd..hh>>
_i_n_t
sseettrreeuuiidd(_i_n_t _r_u_i_d, _i_n_t _e_u_i_d)
DDEESSCCRRIIPPTTIIOONN
The real and effective user ID's of the current process are set according
to the arguments. If _r_u_i_d or _e_u_i_d is 1, the current uid is filled in by
the system. Unprivileged users may change the real user ID to the effec
tive user ID and viceversa; only the superuser may make other changes.
RREETTUURRNN VVAALLUUEESS
Upon successful completion, a value of 0 is returned. Otherwise, a value
of 1 is returned and _e_r_r_n_o is set to indicate the error.
EERRRROORRSS
[EPERM] The current process is not the superuser and a change other
than changing the effective userid to the real userid was
specified.
SSEEEE AALLSSOO
getuid(2), setregid(2), setuid(3)
HHIISSTTOORRYY
The sseettrreeuuiidd function call appeared in 4.2BSD.
4th Berkeley Distribution March 10, 1991 1