int setuid(gid_t id);
Sets the real user ID of the current process to id. Returns zero on success, or the negation of the error code on error.
geteuid, getuid, seteuid, setreuid