2 .\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions
7 .\" 1. Redistributions of source code must retain the above copyright
8 .\" notice, this list of conditions and the following disclaimer.
9 .\" 2. Redistributions in binary form must reproduce the above copyright
10 .\" notice, this list of conditions and the following disclaimer in the
11 .\" documentation and/or other materials provided with the distribution.
12 .\" 3. All advertising materials mentioning features or use of this software
13 .\" must display the following acknowledgement:
14 .\" This product includes software developed by Bill Paul.
15 .\" 4. Neither the name of the University nor the names of its contributors
16 .\" may be used to endorse or promote products derived from this software
17 .\" without specific prior written permission.
19 .\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22 .\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
23 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
36 .Nd "generate reverse netgroup data"
40 .Op Fl f Ar netgroup_file
44 utility processes the contents of a file in
46 format into what is called
49 That is, where the original file shows
50 netgroup memberships in terms of which members reside in a particular
51 group, the reverse netgroup format specifies what groups are associated
52 with a particular member.
53 This information is used to generate the
59 These reverse netgroup maps are used to help speed up
60 netgroup lookups, particularly for the
64 For example, the standard
66 file may list a netgroup and a list of its members.
68 netgroup is considered the
70 and the member names are the
72 By contrast, the reverse
74 database lists each unique
75 member as the key and the netgroups to which the members belong become
77 Separate databases are created to hold information pertaining
78 to users and hosts; this allows netgroup username lookups
79 and netgroup hostname lookups to be performed using independent keyspaces.
81 By constructing these reverse netgroup databases (and the corresponding
85 library functions are spared from having to work out the dependencies
86 themselves on the fly.
87 This is important on networks with large numbers
88 of users and hosts, since it can take a considerable amount of time
89 to process very large netgroup databases.
93 utility prints its results on the standard output.
103 utility supports the following options:
104 .Bl -tag -width indent
108 output; only username information in the
109 original netgroup file is processed.
113 output; only hostname information in the
114 original netgroup file is processed.
115 (Note at least one of the
119 flags must be specified.)
120 .It Op Fl f Ar netgroup_file
125 as its default input file.
128 flag allows the user to specify an alternate input file.
130 as the input file causes
132 to read from the standard input.
135 .Bl -tag -width /var/yp/Makefile -compact
136 .It Pa /var/yp/Makefile
137 the Makefile that calls
145 the default netgroup database file.
146 This file is most often found
157 .An Bill Paul Aq Mt wpaul@ctr.columbia.edu