NAME setruid, setrgid - set user and group ID CONTENTS Library Synopsis Description Return Values Compatibility Errors See Also History LIBRARY .Lb libc SYNOPSIS .In unistd.h int setruid "uid_t ruid" int setrgid "gid_t rgid" DESCRIPTION The setruid function (setrgid) sets the real user ID (group ID) of the current process. RETURN VALUES .Rv -std COMPATIBILITY The use of these calls is not portable. Their use is discouraged; they will be removed in the future. ERRORS The functions fail if: