Query: posix_setuid
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
POSIX_SETUID(3) 1 POSIX_SETUID(3) posix_setuid - Set the UID of the current processSYNOPSISbool posix_setuid (int $uid)DESCRIPTIONSet the real user ID of the current process. This is a privileged function that needs appropriate privileges (usually root) on the system to be able to perform this function.PARAMETERSo $uid - The user id.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 posix_setuid(3) example This example will show the current user id and then set it to a different value. <?php echo posix_getuid()." "; //10001 echo posix_geteuid()." "; //10001 posix_setuid(10000); echo posix_getuid()." "; //10000 echo posix_geteuid()." "; //10000 ?>SEE ALSOposix_setgid(3), posix_seteuid(3), posix_getuid(3), posix_geteuid(3). PHP Documentation Group POSIX_SETUID(3)
Related Man Pages |
---|
in_array(3) - php |
apc_dec(3) - php |
cli_set_process_title(3) - php |
posix_setgid(3) - php |
posix_setuid(3) - php |
Similar Topics in the Unix Linux Community |
---|
file name Manipulation using sed |
Dummy need help :( |
assigning counter to same keys in a file |
help pls! need to move and copy pattern... |
To fetch specific words from a file |