logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

innetgr - Check netgroup membership

Authors

       Petter Reinholdtsen <pere@hungry.com>

Conforming To

       A innetgr program first appeared in NetBSD 1.4.

Description

       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.

       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.

Examples

       To check if the current host is listed in the netgroup allhosts, use this command line:

       if innetgr -h `uname -n` allhosts ; then echo "Found"; fi

Name

       innetgr - Check netgroup membership

Options

--domain<domain>|-d <domain>
              Search in the given domain.

       --host<hostname>|-h <hostname>
              Search for the given host name.

       --user<username>|-u <username>
              Search for the given user name.

       --verbose|-v
              Enable verbose mode

       --version|-V
              Show version information.

See Also

getent(1) netgroup(1) innetgr(3) netgroup(5) nsswitch.conf(5)

Petter Reinholdtsen                                    1.1                                            innetgr(1)

Syntax

       innetgr [-d domain] [-h host] [-u user] [-v] <netgroup>

See Also