xref: /freebsd/libexec/mknetid/mknetid.8 (revision fa9896e082a1046ff4fbc75fcba4d18d1f2efc19)
1ca09eb42SBill Paul.\" Copyright (c) 1995, 1996
2ca09eb42SBill Paul.\"	Bill Paul <wpaul@ctr.columbia.edu>.  All rights reserved.
3ca09eb42SBill Paul.\"
4ca09eb42SBill Paul.\" Redistribution and use in source and binary forms, with or without
5ca09eb42SBill Paul.\" modification, are permitted provided that the following conditions
6ca09eb42SBill Paul.\" are met:
7ca09eb42SBill Paul.\" 1. Redistributions of source code must retain the above copyright
8ca09eb42SBill Paul.\"    notice, this list of conditions and the following disclaimer.
9ca09eb42SBill Paul.\" 2. Redistributions in binary form must reproduce the above copyright
10ca09eb42SBill Paul.\"    notice, this list of conditions and the following disclaimer in the
11ca09eb42SBill Paul.\"    documentation and/or other materials provided with the distribution.
12ca09eb42SBill Paul.\" 3. All advertising materials mentioning features or use of this software
13ca09eb42SBill Paul.\"    must display the following acknowledgement:
14ca09eb42SBill Paul.\"	This product includes software developed by Bill Paul.
15ca09eb42SBill Paul.\" 4. Neither the name of the University nor the names of its contributors
16ca09eb42SBill Paul.\"    may be used to endorse or promote products derived from this software
17ca09eb42SBill Paul.\"    without specific prior written permission.
18ca09eb42SBill Paul.\"
19ca09eb42SBill Paul.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
20ca09eb42SBill Paul.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21ca09eb42SBill Paul.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22ca09eb42SBill Paul.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR CONTRIBUTORS BE LIABLE
23ca09eb42SBill Paul.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24ca09eb42SBill Paul.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25ca09eb42SBill Paul.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26ca09eb42SBill Paul.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27ca09eb42SBill Paul.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28ca09eb42SBill Paul.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29ca09eb42SBill Paul.\" SUCH DAMAGE.
30ca09eb42SBill Paul.\"
31ca09eb42SBill Paul.Dd June 23, 1996
32ca09eb42SBill Paul.Dt MKNETID 8
33ca09eb42SBill Paul.Os
34ca09eb42SBill Paul.Sh NAME
35ca09eb42SBill Paul.Nm mknetid
36ca09eb42SBill Paul.Nd "generate netid map data"
37ca09eb42SBill Paul.Sh SYNOPSIS
3876081989SRuslan Ermilov.Nm
39ca09eb42SBill Paul.Op Fl q
40ca09eb42SBill Paul.Op Fl g Ar group_file
41ca09eb42SBill Paul.Op Fl p Ar passwd_file
42ca09eb42SBill Paul.Op Fl h Ar hosts_file
43ca09eb42SBill Paul.Op Fl n Ar netid_file
44ca09eb42SBill Paul.Op Fl d Ar domain
45ca09eb42SBill Paul.Sh DESCRIPTION
463f162cb8SPhilippe CharnierThe
473f162cb8SPhilippe Charnier.Nm
483f162cb8SPhilippe Charnierutility processes the contents of the
49ca09eb42SBill Paul.Xr group 5 ,
50ca09eb42SBill Paul.Xr passwd 5 ,
51ad17ca10SPhilippe Charnier.Xr hosts 5
52ad17ca10SPhilippe Charnierand
53ca09eb42SBill Paul.Xr netid 5
54ca09eb42SBill Paulfiles into the format used to generate the
55ca09eb42SBill Paul.Pa netid.byname
56ad17ca10SPhilippe Charnier.Tn NIS
57bbe74597SRuslan Ermilovmap.
58bbe74597SRuslan ErmilovThis map is used to hold credential information for both users
599d5abbddSJens Schweikhardtand hosts in an operating system independent format.
60ca09eb42SBill Paul.Pp
61ca09eb42SBill PaulThe
62ad17ca10SPhilippe Charnier.Nm
633f162cb8SPhilippe Charnierutility checks for duplicate occurrences of netids and filters
64ca09eb42SBill Paulthem out.
65ca09eb42SBill Paul.Pp
66ca09eb42SBill PaulThe
67ad17ca10SPhilippe Charnier.Nm
683f162cb8SPhilippe Charnierutility prints its results on the standard output.
69bbe74597SRuslan ErmilovIt is usually called
70ca09eb42SBill Paulonly by
71ad17ca10SPhilippe Charnier.Pa /var/yp/Makefile
72ad17ca10SPhilippe Charnierwhen rebuilding the
73ad17ca10SPhilippe Charnier.Tn NIS
74ad17ca10SPhilippe Charniermaps.
75ca09eb42SBill Paul.Sh OPTIONS
76ca09eb42SBill PaulThe
77ad17ca10SPhilippe Charnier.Nm
783f162cb8SPhilippe Charnierutility supports the following options:
79ad17ca10SPhilippe Charnier.Bl -tag -width indent
80ca09eb42SBill Paul.It Fl q
81ca09eb42SBill PaulNormally,
82ad17ca10SPhilippe Charnier.Nm
83ca09eb42SBill Paulprints a warning message when it encounters a duplicate netid.
84ca09eb42SBill PaulThis flag turns on 'quiet' mode, allowing the warnings to be
85bbe74597SRuslan Ermilovsuppressed.
86bbe74597SRuslan ErmilovOther error messages may still be generated.
87ad17ca10SPhilippe Charnier.It Fl g Ar group_file
88ad17ca10SPhilippe CharnierSpecify the location of the group information
89bbe74597SRuslan Ermilovfile.
90bbe74597SRuslan ErmilovThe compiled-in default is
91ca09eb42SBill Paul.Pa /etc/group .
92ad17ca10SPhilippe Charnier.It Fl p Ar passwd_file
93ad17ca10SPhilippe CharnierSpecify the location of the passwd information
94bbe74597SRuslan Ermilovfile.
95bbe74597SRuslan ErmilovThe compiled-in default is
96ca09eb42SBill Paul.Pa /etc/passwd .
97871f7745SRobert Nordier.It Fl h Ar hosts_file
98ad17ca10SPhilippe CharnierSpecify the location of the hosts database
99bbe74597SRuslan Ermilovfile.
100bbe74597SRuslan ErmilovThe compiled-in default is
101ca09eb42SBill Paul.Pa /etc/hosts .
102ad17ca10SPhilippe Charnier.It Fl n Ar netid_file
103ad17ca10SPhilippe CharnierSpecify the location of the netid information
104bbe74597SRuslan Ermilovfile.
105bbe74597SRuslan ErmilovThe compiled-in default is
106ca09eb42SBill Paul.Pa /etc/netid .
1070227791bSRuslan ErmilovNote that no error is generated if the netid database cannot be
108bbe74597SRuslan Ermilovfound.
109bbe74597SRuslan ErmilovThe netid database is not likely to be present on most systems
110ad17ca10SPhilippe Charnieruntil
111ad17ca10SPhilippe Charnier.Tn Secure RPC
112ad17ca10SPhilippe Charniersupport is added to
113b5c508fbSRuslan Ermilov.Fx .
114ca09eb42SBill Paul.It Fl d Ar domain
115ca09eb42SBill PaulBy default, the
116ad17ca10SPhilippe Charnier.Nm
1173f162cb8SPhilippe Charnierutility uses the system domainname when generating netid records.
118bbe74597SRuslan ErmilovIf
119ca09eb42SBill Paulthe system domainname is not set, the domain must be specified on the
120ca09eb42SBill Paulcommand line with the
121ca09eb42SBill Paul.Fl d
122bbe74597SRuslan Ermilovflag.
123bbe74597SRuslan ErmilovIf the domainname is set, the
124ca09eb42SBill Paul.Fl d
125ca09eb42SBill Paulflag may be used to override it.
126ca09eb42SBill Paul.El
127ca09eb42SBill Paul.Sh FILES
128ad17ca10SPhilippe Charnier.Bl -tag -width /var/yp/Makefile -compact
129ca09eb42SBill Paul.It Pa /var/yp/Makefile
130ad17ca10SPhilippe Charnierthe Makefile that calls
131ca09eb42SBill Paul.Nm yp_mkdb
132ca09eb42SBill Pauland
13376081989SRuslan Ermilov.Nm
134ad17ca10SPhilippe Charnierto build the
135ad17ca10SPhilippe Charnier.Tn NIS
136ad17ca10SPhilippe Charnierdatabases
137ca09eb42SBill Paul.It Pa /etc/group
138ad17ca10SPhilippe Charnierthe default group database file
139ca09eb42SBill Paul.It Pa /etc/passwd
140ad17ca10SPhilippe Charnierthe default passwd database file
141ca09eb42SBill Paul.It Pa /etc/hosts
142ad17ca10SPhilippe Charnierthe default hosts database file
143ca09eb42SBill Paul.It Pa /etc/netid
144ad17ca10SPhilippe Charnierthe default netid database file
145ca09eb42SBill Paul.El
146ca09eb42SBill Paul.Sh SEE ALSO
147491a8429SRuslan Ermilov.Xr yp 8 ,
148ca09eb42SBill Paul.Xr yp_mkdb 8
149c92c0f26SPhilippe Charnier.Sh AUTHORS
150*01c2b8acSBaptiste Daroussin.An Bill Paul Aq Mt wpaul@ctr.columbia.edu
151