innetgroup

Description

The innetgroup() function determines if a specific machine is a member of a netgroup.

Not supported in Endpoint Privilege Management for Linux (EPM-L).

Syntax

result = innetgroup (netgroup, host [, user [, domain]])

Arguments

netgroup Required. Name of the netgroup to query.
host Required. The name of the machine in question.
user Optional. The user name.
domain Optional. The user name.

Return Values

true The specified machine is a member of the specified netgroup.

false

The specified machine is not a member of the specified netgroup.

 

result = innetgroup ("myhosts", "machine1");

In this example, result contains an integer value of 1 (true) if machine1 is a member of the netgroup myhosts. result contains an integer value of 0 (false) if machine1 is not a member of the netgroup myhosts.

For more information, see inusernetgroup.