method
getgrgid
v1_9_1_378 -
Show latest stable
- Class:
Etc
getgrgid(p1 = v1)public
Returns information about the group with specified integer group id (gid), as found in /etc/group.
The information is returned as a Struct::Group; see getgrent above for details.
e.g. Etc.getgrgid(100) -> #<struct Struct::Group name=“users”, passwd=“x”, gid=100, mem=[“meta”, “root”]>