I need your help, Still learning how work this lkjqsgfhjksgfhkdjsghsghf of php
I want to retrieve the gid of a group by php, I know how to do it by perl, I could find it and save it in a db during a template-expand, but I would do it directly in the server-manager.
for what I saw, I could install php-process and use some functions, but it doesn’t work (I tested my function with a standard ($a=‘toto’;return $a;), the problem is not here)
The posix_getgrnam searches a group by its name and returns an array which contains the gid.
(Some php hardening guides suggest to disable this and similar functions to prevent information disclosure).