blob: ca374fed4c33e37225f677f2d17d107c937c8667 [file] [log] [blame]
SYNOPSIS
int seteuid(string str)
DESCRIPTION
Set effective uid to str. The calling object must be
privileged to do so by the master object. In most
installations it can always be set to the current uid of the
object, to the uid of the creator of the object file, or to 0.
Result is 0 the euid could not be changed, and non-0 if it
was changed.
When this value is 0, the current object's uid can be changed
by export_uid(), and only then.
If strict euid usage is enforced, objects with euid 0 cannot
load or clone other objects.
HISTORY
Since 3.2.1@47, this efun is availabe only when using euids.
Since 3.2.7, this efun is always available.
SEE ALSO
export_uid(E), getuid(E), geteuid(E), native(C),
valid_seteuid(M)