struct group

data structure containing group information 

Data Structure


SYNOPSIS

#include <grp.h>

struct group {
	char *gr_name;
	char *gr_passwd;
	gid_t gr_gid;
	char **gr_mem;
};


DESCRIPTION

The group structure is returned by the getgrgid(), getgrgid_r(), getgrnam(), and getgrnam_r() functions. It provides information about a group. The structure has the following fields:

gr_name  

Group name.

gr_passwd  

Encrypted password. This field is not supported.

gr_gid  

Group ID.

gr_mem  

List of group members.


CONFORMANCE

UNIX 98, with exceptions.


PORTING ISSUES

On 2012/8.1/2012R2/10/2016/2019, the structure is filled with information from the SAM database. Refer to Users and Groups in the Windows Concepts chapter of the PTC MKS Toolkit UNIX to Windows Porting Guide.

2012/8.1/2012R2/10/2016/2019 security allows only administrators and members of a group to enumerate the members of a group. Therefor, the gr_mem field of the group structure may be empty on a successful return.


AVAILABILITY

PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition


SEE ALSO

Functions:
getgrgid(), getgrgid_r(), getgrnam(), getgrnam_r(), getpwnam(), getpwnam_r(), getpwuid(), getpwuid_r()

Miscellaneous:
struct passwd


PTC MKS Toolkit 10.3 Documentation Build 39.