Hello
I have a small php script which creates a file:
#!/usr/local/bin/php-5.2 -q
//set group ID to operator
posix_setgid(5);
posix_setegid(5);
//set user ID to nobody
posix_setuid($_uid);
// create file
touch('/tmp/permtest');
echo 'getuid: ' . posix_getuid() . \n;
echo
On Wed, Oct 09, 2013 at 04:26:20PM +0200, Bambero wrote:
Hello
I have a small php script which creates a file:
#!/usr/local/bin/php-5.2 -q
//set group ID to operator
posix_setgid(5);
posix_setegid(5);
//set user ID to nobody
posix_setuid($_uid);
// create
Thanks fo the answer.
But, another example:
#!/usr/local/bin/php-5.2 -q
//set group ID to operator
posix_setgid(5);
posix_setegid(5);
//set user ID to nobody
posix_setuid($_uid);
echo 'getuid: ' . posix_getuid() . \n;
echo 'getgid: ' . posix_getgid() . \n;
echo 'getegid: '
On Wed, Oct 09, 2013 at 05:47:36PM +0200, Bambero wrote:
Thanks fo the answer.
But, another example:
#!/usr/local/bin/php-5.2 -q
//set group ID to operator
posix_setgid(5);
posix_setegid(5);
//set user ID to nobody
posix_setuid($_uid);
echo 'getuid: ' .
4 matches
Mail list logo