Query: posix_setegid
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
POSIX_SETEGID(3) 1 POSIX_SETEGID(3) posix_setegid - Set the effective GID of the current processSYNOPSISbool posix_setegid (int $gid)DESCRIPTIONSet the effective group 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.PARAMETERSo $gid - The group id.RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 posix_setegid(3) example This example will print out the effective group id, once changed. <?php echo 'My real group id is '.posix_getgid(); //20 posix_setegid(40); echo 'My real group id is '.posix_getgid(); //20 echo 'My effective group id is '.posix_getegid(); //40 ?>SEE ALSOposix_getgrgid(3), posix_getgid(3), posix_setgid(3). PHP Documentation Group POSIX_SETEGID(3)
Related Man Pages |
---|
setuid(2) - sunos |
setegid(2) - opensolaris |
setregid(2) - netbsd |
posix_getgrgid(3) - php |
posix_setgid(3) - php |
Similar Topics in the Unix Linux Community |
---|
User Guide: Posting in the Emergency Forum |
Rules for Homework & Coursework Questions Forum |
UNIX.COM 2017 Year End Summary |
Coming Soon: Upgrade Forum Software (Dec 31 - Jan 1) |