Query: innetgr
OS: bsd
Section: 1
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
innetgr(1) NSS utilities innetgr(1)NAMEinnetgr - Check netgroup membershipSYNTAXinnetgr [-d domain] [-h host] [-u user] [-v] <netgroup>DESCRIPTIONinnetgr 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. 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.OPTIONS--domain <domain> | -d <domain> Search in the given domain. --host <host name> | -h <host name> Search for the given host name. --user <user name> | -u <user name> Search for the given user name. --verbose | -v Enable verbose mode --version | -V Show version information.EXAMPLESTo check if the current host is listed in the netgroup allhosts, use this command line: if innetgr -h `uname -n` allhosts ; then echo "Found"; fiCONFORMING TOA innetgr program first appeared in NetBSD 1.4.AUTHORSPetter Reinholdtsen <pere@hungry.com>SEE ALSOgetent(1) netgroup(1) innetgr(3) netgroup(5) nsswitch.conf(5) Petter Reinholdtsen 0.7 innetgr(1)
Related Man Pages |
---|
innetgr(3) - netbsd |
innetgr(1) - plan9 |
innetgr(1) - xfree86 |
innetgr(1) - posix |
innetgr(1) - bsd |
Similar Topics in the Unix Linux Community |
---|
Add Linux host to Windows domain |