Home > PHP > Function > POSIX > posix_seteuid()

posix_seteuid()

posix_seteuid - Set the effective UID of the current process

Syntax

bool posix_seteuid (int $uid)

Arguments

  • uid - The user id.

Description

Set the real user ID of the current process. This is a privileged function and needs appropriate privileges (usually root) on the system to be able to perform this function.

Version

PHP 4.0.2, 5

Return value

Returns TRUE on success or FALSE on failure.