Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

netgroup(1) [v7 man page]

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)
Man Page

6 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

NIS problem with netgroup

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)
Discussion started by: Michael
1 Replies

2. UNIX for Dummies Questions & Answers

NIS Group, Netgroup

Hi all, Is there a way for me to know the NIS group and Netgroup my UNIX account? Thank you. (0 Replies)
Discussion started by: risk_sly
0 Replies

3. UNIX for Advanced & Expert Users

ldapsearch to find netgroups which a user belongs to

how to use ldapsearch to find all the netgroups a user belongs to? It's Solaris. (1 Reply)
Discussion started by: jalite19
1 Replies

4. Linux

/etc/security/limits.conf NIS netgroup support

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)
Discussion started by: rethink
2 Replies

5. UNIX for Advanced & Expert Users

Change to NIS netgroup definition in upcoming Internet Draft

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)
Discussion started by: cambridge
8 Replies

6. Shell Programming and Scripting

Pull Netgroup from Servers

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)
Discussion started by: dbashyam
1 Replies