API to translate group name to group id (gid)
Posted
by Wayne Conrad
on Stack Overflow
See other posts from Stack Overflow
or by Wayne Conrad
Published on 2010-05-17T20:01:56Z
Indexed on
2010/05/17
20:10 UTC
Read the original article
Hit count: 218
File.chown
takes an owner ID, a group ID (gid), and a filename. I want to use it to set a file's gid, but what I have is the group name. Is there anything in the standard library that I can use to translate a group name into a gid?
© Stack Overflow or respective owner