

setuid()               COHERENT System Call              setuid()




Set user id

iinntt sseettuuiidd(_i_d) iinntt _i_d;

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


