posix_seteuid — Set the effective UID of the current process
$user_id
): boolSet the effective 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.
user_id
The user id.
Returns true
on success or false
on failure.