| 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.
| “ | Ken Thompson has an automobile which he helped design. Unlike most automobiles, it has neither speedometer, nor gas gauge, nor any of the other numerous idiot lights which plague the modern driver. Rather, if the driver makes a mistake, a giant “?” lights up in the center of the dashboard. “The experienced driver,” says Thompson, “will usually know what's wrong.” | ” |