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 am not sure what you mean by "netgroup". If you mean NIS-groups they are stored in /etc/netgroup on AIX and i suppose on other systems too - if you could tell us your OS we could probably give better/less generalised advice.
Quote:
Originally Posted by dbashyam
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 starting point?
How about something like:
There sure is much to be done on this script skeleton, but it should work as a starting point.
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)
Hello
I have 2 Linux machines with a zip file residing on one of them
I am using putty to connect to my Linux files
Is there a way to copy the zip file from one Linux machine to the second
Using the putty textual interface?
If I had a visual interface, maybe I could have opened a browser,... (5 Replies)
We have a cluster of 3 web servers. I'll be updating a single master server and copying info to the other 2 slave servers. What's the best way of synching all of them? Run rsync on each of the slave servers to pull the updates from the master? Or run rsync on the master to push the updates to the... (1 Reply)
Hi all.
This may be a stupid question but here goes:
I lost a disk on my Sun-Fire 480-r and want to replace it. I don't care about the data, I just need to get a new disk in which I have.
The problem I have is that there are two disks and both have the green lights on them... and I'm not... (3 Replies)
Experts,
You all have been very supportive of me so far & Im thankful for it.
I need to extract data between two sets of parenthesis and also between quotes.
cat LOGFILE | grep 'number wasnt' | head -2
I. 2011/04/14 01:12:03. process(130) Deleting Text on line 11... (9 Replies)
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)
Hello All,
I need help writing a bash script that will run on 500 LINUX servers and do the following:
1. Capture the ipa_server name from /etc/sssd/sssd.conf on a list of 500 servers in the ipahosts file.
2. Write to a file outputing only server name and IPA server name.
Root ssh keys... (3 Replies)
Discussion started by: vtowntechy
3 Replies
LEARN ABOUT FREEBSD
revnetgroup
REVNETGROUP(8) BSD System Manager's Manual REVNETGROUP(8)NAME
revnetgroup -- generate reverse netgroup data
SYNOPSIS
revnetgroup -u | -h [-f netgroup_file]
DESCRIPTION
The revnetgroup utility processes the contents of a file in netgroup(5) format into what is called reverse netgroup form. That is, where the
original file shows netgroup memberships in terms of which members reside in a particular group, the reverse netgroup format specifies what
groups are associated with a particular member. This information is used to generate the netgroup.byuser and netgroup.byhost NIS maps.
These reverse netgroup maps are used to help speed up netgroup lookups, particularly for the innetgr() library function.
For example, the standard /etc/netgroup file may list a netgroup and a list of its members. Here, the netgroup is considered the key and the
member names are the data. By contrast, the reverse netgroup.byuser database lists each unique member as the key and the netgroups to which
the members belong become the data. Separate databases are created to hold information pertaining to users and hosts; this allows netgroup
username lookups and netgroup hostname lookups to be performed using independent keyspaces.
By constructing these reverse netgroup databases (and the corresponding NIS maps) in advance, the getnetgrent(3) library functions are spared
from having to work out the dependencies themselves on the fly. This is important on networks with large numbers of users and hosts, since
it can take a considerable amount of time to process very large netgroup databases.
The revnetgroup utility prints its results on the standard output. It is usually called only by /var/yp/Makefile when rebuilding the NIS
netgroup maps.
OPTIONS
The revnetgroup utility supports the following options:
-u Generate netgroup.byuser output; only username information in the original netgroup file is processed.
-h Generate netgroup.byhost output; only hostname information in the original netgroup file is processed. (Note at least one of the -u
or -h flags must be specified.)
[-f netgroup_file]
The revnetgroup utility uses /etc/netgroup as its default input file. The -f flag allows the user to specify an alternate input
file. Specifying ``-'' as the input file causes revnetgroup to read from the standard input.
FILES
/var/yp/Makefile the Makefile that calls yp_mkdb and revnetgroup to build the NIS databases
/etc/netgroup the default netgroup database file. This file is most often found only on the NIS master server
SEE ALSO getnetgrent(3), netgroup(5), yp(8), yp_mkdb(8)AUTHORS
Bill Paul <wpaul@ctr.columbia.edu>
BSD October 24, 1995 BSD