xref: /freebsd/libexec/mknetid/mknetid.8 (revision df7f5d4de4592a8948a25ce01e5bddfbb7ce39dc)
1.\" Copyright (c) 1995, 1996
2.\"	Bill Paul <wpaul@ctr.columbia.edu>.  All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
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.
18.\"
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
29.\" SUCH DAMAGE.
30.\"
31.\"	$Id$
32.\"
33.Dd June 23, 1996
34.Dt MKNETID 8
35.Os
36.Sh NAME
37.Nm mknetid
38.Nd "generate netid map data"
39.Sh SYNOPSIS
40.Nm mknetid
41.Op Fl q
42.Op Fl g Ar group_file
43.Op Fl p Ar passwd_file
44.Op Fl h Ar hosts_file
45.Op Fl n Ar netid_file
46.Op Fl d Ar domain
47.Sh DESCRIPTION
48.Nm Mknetid
49processes the contents of the
50.Xr group 5 ,
51.Xr passwd 5 ,
52.Xr hosts 5 and
53.Xr netid 5
54files into the format used to generate the
55.Pa netid.byname
56NIS map. This map is used to hold credential information for both users
57and hosts in a operating system independent format.
58.Pp
59The
60.Nm mknetid
61command checks for duplicate occurances of netids and filters
62them out.
63.Pp
64The
65.Nm mknetid
66command prints its results on the standard output. It is usually called
67only by
68.Nm /var/yp/Makefile
69when rebuilding the NIS maps.
70.Pp
71.Sh OPTIONS
72The
73.Nm mknetid
74command supports the following options:
75.Bl -tag -width flag
76.It Fl q
77Normally,
78.Nm mknetid
79prints a warning message when it encounters a duplicate netid.
80This flag turns on 'quiet' mode, allowing the warnings to be
81surpressed. Other error messages may still be generated.
82.It Fl g Ar group-file
83The
84.Fl g
85flag can be used to specify the location of the group information
86file. The compiled-in default is
87.Pa /etc/group .
88.It Fl p Ar passwd-file
89The
90.Fl p
91flag can be used to specify the location of the passwd information
92file. The compiled-in default is
93.Pa /etc/passwd .
94.It Fl h Ar group-file
95The
96.Fl h
97flag can be used to specify the location of the hosts database
98file. The compiled-in default is
99.Pa /etc/hosts .
100.It Fl n Ar netid-file
101The
102.Fl n
103flag can be used to specify the location of the netid information
104file. The compiled-in default is
105.Pa /etc/netid .
106Note that no error is generated if the netid database can't be
107found. The netid database is not likely to be present on most systems
108until Secure RPC support is added to FreeBSD.
109.It Fl d Ar domain
110By default, the
111.Nm mknetid
112command uses the system domainname when generating netid records. If
113the system domainnameis not set, the domain must be specified on the
114command line with the
115.Fl d
116flag. If the domainname is set, the
117.Fl d
118flag may be used to override it.
119.El
120.Sh FILES
121.Bl -tag -width Pa -compact
122.It Pa /var/yp/Makefile
123The Makefile that calls
124.Nm yp_mkdb
125and
126.Nm mknetid
127to build the NIS databases.
128.It Pa /etc/group
129The default group database file.
130.It Pa /etc/passwd
131The default passwd database file.
132.It Pa /etc/hosts
133The default hosts database file.
134.It Pa /etc/netid
135The default netid database file.
136.El
137.Sh SEE ALSO
138.Xr yp 4 ,
139.Xr yp_mkdb 8
140.Sh AUTHOR
141Bill Paul <wpaul@ctr.columbia.edu>
142