Crate groups

Crate groups 

Source
Expand description

This library parses /etc/group for information about groups on a system

Groups are represented in /etc/group in the form of:

group_name:password:GID:user_list

Structs§

Group
Structure used to wrap parsed information from groups database

Functions§

get_group_by_gid
Gets a group by its GID
get_group_by_name
Gets a group by its name
get_group_list
Searches all groups for any user given or their GID
get_groups
Returns all groups within /etc/group