Main index | Section 2 | 日本語 | Options |
#include <sys/types.h>
#include <unistd.h>
Privileged processes may set these IDs to arbitrary values. Unprivileged processes are restricted in that each of the new IDs must match one of the current IDs.
Passing -1 as an argument causes the corresponding value to remain unchanged.
The getresgid() and getresuid() calls retrieve the real, effective, and saved group and user IDs of the current process, respectively.
[EPERM] | |
The calling process was not privileged and tried to change one or more IDs to a value which was not the current real ID, the current effective ID nor the current saved ID. | |
[EFAULT] | |
An address passed to getresgid() or getresuid() was invalid. | |
SETRESUID (2) | February 7, 2015 |
Main index | Section 2 | 日本語 | Options |
Please direct any comments about this manual page service to Ben Bullock. Privacy policy.
“ | A UNIX saleslady, Lenore, Enjoys work, but she likes the beach more. She found a good way To combine work and play: She sells C shells by the seashore. |
” |