Search Results
Examples ¶ Example #1 posix_setuid () example This example will show the current user id and then set it to a different value.
Set 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.
(PHP 4, PHP 5, PHP 7) Set the UID of the current process bool posix_setuid ( int $uid )
PHP Functions (PHP 3 >= 3.0.13, PHP 4, PHP 5) posix_setuid -- Set the UID of the current process Description bool posix_setuid ( int uid ) Set the real user ID of the current process. This is a privileged function and you need appropriate privileges (usually root) on your system to be able to perform this function.
Here's some Perl code to run a PHP script setuid. Just put it into a CGI, make that CGI setuid and executable, then call the CGI where you would usually call the PHP script.
posix_setuidSet the UID of the current process (PHP 4, PHP 5) bool posix_setuid ( int uid ) Set 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. Parametersuid The user id. Return Values Returns TRUE on success or FALSE on ...
People also ask
How do I run a PHP script setuid?
How to set process UID in PHP?
How to set UID in a PHP script?
Why should I use POSIX_setuid instead of execl?
See Also ¶ posix_geteuid () - Return the effective user ID of the current process posix_setuid () - Set the UID of the current process posix_getuid () - Return the real user ID of the current process
