setuid() COHERENT System Call setuid() Set user id int setuid(id) int id; setuid sets the real user id and the user id of the calling process to id. (For more information on the user id, see exec). The call is allowed if the real id of the calling process matches id or is the superuser. ***** See Also ***** COHERENT system calls, exec, getuid(), login, setgid() ***** Diagnostics ***** setuid returns zero on success, or -1 on failure. COHERENT Lexicon Page 1