innetgr(1)

innetgr1

Check netgroup membership

Usage

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

Overview

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.

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.

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

Releases

11 releases since Debian 3.1 (Sarge); the text changed 3 times.

  1. 3.1–4.0
  2. 5.0–7
  3. 8–11
  4. 12–13

Conforming to

A innetgr program first appeared in NetBSD 1.4.

Authors

Petter Reinholdtsen <[email protected]>

From ng-utils 1.1-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.