1 .\" $NetBSD: revnetgroup.8,v 1.9 2005/02/26 16:28:40 thorpej Exp $
4 .\" Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
14 .\" 3. All advertising materials mentioning features or use of this software
15 .\" must display the following acknowledgement:
16 .\" This product includes software developed by Bill Paul.
17 .\" 4. Neither the name of the University nor the names of its contributors
18 .\" may be used to endorse or promote products derived from this software
19 .\" without specific prior written permission.
21 .\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
22 .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23 .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24 .\" ARE DISCLAIMED. IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
25 .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27 .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28 .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29 .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30 .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
38 .Nd generate reverse netgroup data
43 .Op Fl f Ar netgroup_file
47 processes the contents of a file in
49 format into what is called
51 form. That is, where the original file shows
52 netgroup memberships in terms of which members reside in a particular
53 group, the reverse netgroup format specifies what groups are associated
54 with a particular member. This information is used to generate the
59 maps. 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. Here, the
67 netgroup is considered the
69 and the member names are the
71 By contrast, the reverse
73 database lists each unique
74 member as the key and the netgroups to which the members belong become
75 the data. Separate databases are created to hold information pertaining
76 to users and hosts; this allows netgroup username lookups
77 and netgroup hostname lookups to be performed using independent keyspaces.
79 By constructing these reverse netgroup databases (and the corresponding
83 library functions are spared from having to work out the dependencies
84 themselves on the fly. This is important on networks with large numbers
85 of users and hosts, since it can take a considerable amount of time
86 to process very large netgroup databases.
90 command prints its results on the standard output. It is usually called
92 .Pa /var/yp/\*[Lt]domain\*[Gt]/Makefile
99 command supports the following options:
102 Generate netgroup.byuser output; only username information in the
103 original netgroup file is processed.
105 Generate netgroup.byhost output; only hostname information in the
106 original netgroup file is processed. (Note at least one of the
110 flags must be specified.)
111 .It Op Fl f Ar netgroup_file
116 as its default input file. The
118 flag allows the user to specify an alternate input file. Specifying ``-''
119 as the input file causes
121 to read from the standard input.
124 .Bl -tag -width Pa -compact
125 .It Pa /var/yp/\*[Lt]domain\*[Gt]/Makefile
126 The Makefile that calls
134 The default netgroup database file. This file is most often found
145 .An Bill Paul Aq wpaul@ctr.columbia.edu