setuid

Synopsis

(setuid user-ID)

Parameters

  • user-ID

Description

This procedure sets the the real and effective user IDs to the specified value.

Side Effects

Return Value

#t is retuned on success, otherwise #f.

Example

> (setuid (geteuid))
#t
> (setuid 0)
#f
> (strerror (errno))
"Operation not permitted"
>