xref: /netbsd/usr.sbin/ypserv/mknetid/mknetid.8 (revision bf9ec67e)
1.\"	$NetBSD: mknetid.8,v 1.7 2002/02/02 02:20:30 wiz Exp $
2.\"
3.\" Copyright (c) 1996 Mats O Jansson <moj@stacken.kth.se>
4.\" All rights reserved.
5.\"
6.\" Redistribution and use in source and binary forms, with or without
7.\" modification, are permitted provided that the following conditions
8.\" are met:
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 Mats O Jansson
17.\" 4. The name of the author may not be used to endorse or promote products
18.\"    derived from this software without specific prior written permission.
19.\"
20.\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
21.\" OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
22.\" WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
23.\" ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
24.\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
25.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
26.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
27.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
28.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
29.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
30.\" SUCH DAMAGE.
31.\"
32.Dd January 13, 1996
33.Dt MKNETID 8
34.Os
35.Sh NAME
36.Nm mknetid
37.Nd a YP filter program
38.Sh SYNOPSIS
39.Nm ""
40.Op Fl q
41.Bk -words
42.Op Fl d Ar domain
43.Ek
44.Bk -words
45.Op Fl p Ar passwdfile
46.Ek
47.Bk -words
48.Op Fl g Ar groupfile
49.Ek
50.Bk -words
51.Op Fl h Ar hostfile
52.Ek
53.Bk -words
54.Op Fl m Ar netidfile
55.Ek
56.Sh DESCRIPTION
57.Nm
58is used to create a map named
59.Pa netid.byname .
60The map consists of information from
61.Xr passwd 5 ,
62.Xr group 5
63and
64.Xr hosts 5
65eventually concatenated with a
66.Xr netid 5
67file.
68.Pp
69The options are as follows:
70.Bl -tag -width "-p passwdfile"
71.It Fl d Ar domain
72.Tn YP
73domain to use instead of the default domain.
74.It Fl g Ar groupfile
75Alternate
76.Xr group 5
77file.
78Default is
79.Pa /etc/group .
80.It Fl h Ar hostfile
81Alternate
82.Xr hosts 5
83file.
84Default is
85.Pa /etc/hosts .
86.It Fl m Ar netidfile
87Alternate
88.Xr netid 5
89file.
90Default is
91.Pa /etc/netid .
92.It Fl p Ar passwdfile
93Alternate
94.Xr passwd 5
95file.
96Default is
97.Pa /etc/passwd .
98.It Fl q
99Keep quiet about multiple occurrences of a uid; ignore all but the first.
100.El
101.Sh FILES
102.Bl -tag -width "/etc/passwd" -compact
103.It Pa /etc/group
104.It Pa /etc/hosts
105.It Pa /etc/netid
106.It Pa /etc/passwd
107.El
108.Sh SEE ALSO
109.Xr domainname 1 ,
110.Xr group 5 ,
111.Xr hosts 5 ,
112.Xr netid 5 ,
113.Xr passwd 5 ,
114.Xr yp 8
115.Sh AUTHORS
116.An Mats O Jansson Aq moj@stacken.kth.se
117