Syntax
int innetuser (string netgroup, string user)
int inusernetgroup (string netgroupname, string username)
Description
innetuser or inusernetgroup returns true if the specified user is in the specified NIS netgroup or other specified group on the policy server; otherwise the function returns false.
Example
if ( ! innetuser("submitusers", user)) { reject "You are not permitted to submit a command from this host"; }
if ( ! inusernetgroup("submitusers", user)) { reject "You are not permitted to submit a command from this host"; }