netgroup(1) NSS utilities netgroup(1)NAME
netgroup - List netgroup members
SYNTAX
netgroup [-dhu] <netgroup>
DESCRIPTION
netgroup lists the requested member types in the given netgroup.
OPTIONS -d List domain names.
-h List host names (default)
-u List user names
--version
Show version information.
EXAMPLES
To list all the hosts in the allhosts netgroup:
netgroup -h allhosts
CONFORMING TO
A netgroup program first appeared in NetBSD 1.4.
AUTHORS
Petter Reinholdtsen <pere@hungry.com>
SEE ALSO getent(1)innetgr(1)setnetgrent(3)getnetgrent(3)endnetgrent(3)netgroup(5)Petter Reinholdtsen 0.7 netgroup(1)
Check Out this Related Man Page
innetgr(1) NSS utilities innetgr(1)NAME
innetgr - Check netgroup membership
SYNTAX
innetgr [-d domain] [-h host] [-u user] [-v] <netgroup>
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.
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
CONFORMING TO
A innetgr program first appeared in NetBSD 1.4.
AUTHORS
Petter Reinholdtsen <pere@hungry.com>
SEE ALSO getent(1)netgroup(1)innetgr(3)netgroup(5)nsswitch.conf(5)Petter Reinholdtsen 0.7 innetgr(1)
Hi@all,
I'd setup a nis server and 4 slaves. Update of passwd work's fine, but if i create a netgroup file the make all process hang by push the netgroup file.
I work with AIX 4.3.3.0 and Maintance Level 5.
Tank's for help (1 Reply)
Hi there,
I am trying to set a ulimit max in the /etc/security/limits.conf against a NIS netgroup (which contains a whole bunch of users) instead of a local user or group.
so I have a NIS netgroup called +@myusers , none of whose users are defined locally on the box. I want to ensure that... (2 Replies)
I'm considering the merits of slightly redefining the "domain" field in a NIS netgroup (the third field in the triple) to make it more useful, in a new Internet Draft that I am currently developing. Does anyone out there who uses NIS actually make use of the "domain" field? The places I've worked... (8 Replies)
Hi, How to pull netgroup from all servers
I think the netgroup resides in /etc/security/access.conf so I want to know how to get the list of netgroup in all the servers.
I have a jump server I can run the script from there to get the list but not sure how to do the script. Any ideas or... (1 Reply)