|
Posted by Richard Lynch on 10/02/10 11:10
> Hello,
>
> while I can use posix_getgroups() to get groups additional to the
> posix_getgid() value, I don't know which function to use to find out the
> groups additional to posix_getegid(). There's no posix_getegroups()
> function.
You may be stuck with:
<?php
$uid = posix_getuid();
exec("groups $uid", $output, $error);
if ($error) echo "OS Error: $error<br />\n";
echo implode("<br />", $output);
?>
You'd want to do more than just echo the output, of course.
--
Like Music?
http://l-i-e.com/artists.htm
Navigation:
[Reply to this message]
|