API for translating group name into group identifier (gid)
1 answer
I'm not very familiar with ruby, but the syscall for Linux is struct group* getgrnam(const char* name)
AND is derived from a file /etc/group
.
According to this site, you can find this function in the module Etc
:
Etc.getgrnam(‘users’) ->
#<struct Struct::Group
name="users",
passwd="x",
gid=100,
mem=["meta", "root"]>
+4
a source to share