FpSetuid

Set the current user ID

Declaration

Source position: bunxh.inc line 52

  function FpSetuid(uid: TUid) : cint;

Description

fpSetUID sets the user ID of the current process. This call will only work if it is executed as root, or the program is setuid root.

On success, zero is returned, on error -1 is returned.

Errors

Extended error information can be retrieved with fpGetErrNo .

See also

Name Description
FpGetEGid Return effective group ID
FpGetEUid Return effective user ID
FpGetGid Return real group ID
FpGetPid Return current process ID
FpGetPPid Return parent process ID
FpGetUid Return current user ID
FpSetGid Set the current group ID