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.
“ | On two occasions I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able rightly to apprehend the kind of confusion of ideas that could provoke such a question. | ” |
— Charles Babbage |