|
|
1.1 ! root 1: .TH SETREUID 2 "12 February 1983" ! 2: .UC 4 ! 3: .SH NAME ! 4: setreuid \- set real and effective user ID's ! 5: .SH SYNOPSIS ! 6: .ft B ! 7: .nf ! 8: setreuid(ruid, euid) ! 9: int ruid, euid; ! 10: .fi ! 11: .ft R ! 12: .SH DESCRIPTION ! 13: The real and effective user ID's of the ! 14: current process are set according to the arguments. ! 15: If ! 16: .I ruid ! 17: or ! 18: .I euid ! 19: is \-1, the current uid is filled in by the system. ! 20: Only the super-user may modify the real uid of ! 21: a process. Users other than the super-user may ! 22: change the effective uid of a process only to the ! 23: real uid. ! 24: .SH "RETURN VALUE ! 25: Upon successful completion, a value of 0 is returned. Otherwise, ! 26: a value of \-1 is returned and \fIerrno\fP is set to indicate the error. ! 27: .SH "ERRORS ! 28: .TP 15 ! 29: [EPERM] ! 30: The current process is not the super-user and a change ! 31: other than changing the effective user-id to the real user-id ! 32: was specified. ! 33: .SH "SEE ALSO" ! 34: getuid(2), setregid(2), setuid(3)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.