Unix |
Unix v6 |
|
![]() |
setuid(2) |
![]() |
setuid set process user ID (setuid = 23.)
(user ID in r0)
sys setuid setuid(uid) The user ID of the current
process is set to the argument. Both the effective and the
real user ID are set. This call is only permitted to the
super-user or if the argument is the real user ID. getuid
(II) Error bit (c-bit) is set as indicated; from C, a 1
value is returned.
![]() |
setuid(2) | ![]() |