.TH "innetgr" "1" "1.0" "Petter Reinholdtsen" "NSS utilities" .SH "NAME" .LP innetgr \- Check netgroup membership .SH "SYNTAX" .LP innetgr [\-d \fIdomain\fP] [\-h \fIhost\fP] [\-u \fIuser\fP] [\-v] <\fInetgroup\fP> .SH "DESCRIPTION" .LP innetgr checks if the specified user, host or domain is a member of the given netgroup. The program does not produce any output unless the verbose ( \-v ) flag is given. .LP The exit status is 0 if the user/host/doman combination is a member of the given netgroup. Exit status is 1 if the combination is not found in the group, and 2 if one of the arguments are invalid. .SH "OPTIONS" .LP .TP \fB\-\-domain <\fIdomain\fP> | \-d\fR <\fIdomain\fP> Search in the given domain. .TP \fB\-\-host <\fIhost name\fP> | \-h\fR <\fIhost name\fP> Search for the given host name. .TP \fB\-\-user <\fIuser name\fP> | \-u\fR <\fIuser name\fP> Search for the given user name. .TP \fB\-\-verbose | \-v\fR Enable verbose mode .TP \fB\-\-version | \-V\fR Show version information. .SH "EXAMPLES" .LP To check if the current host is listed in the netgroup allhosts, use this command line: .LP if innetgr \-h `uname \-n` allhosts ; then echo "Found"; fi .SH "CONFORMING TO" A innetgr program first appeared in NetBSD 1.4. .SH "AUTHORS" .LP Petter Reinholdtsen .SH "SEE ALSO" .LP getent(1) netgroup(1) innetgr(3) netgroup(5) nsswitch.conf(5)