xref: /netbsd/usr.sbin/ypserv/mknetid/netid.5 (revision bf9ec67e)
1.\"	$NetBSD: netid.5,v 1.6 2002/02/08 01:38:58 ross 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 NETID 5
34.Os
35.Sh NAME
36.Nm netid
37.Nd YP network credential file
38.Sh DESCRIPTION
39Files in
40.Nm
41format are rare. One lives in the
42.Tn YP
43map
44.Pa netid.byname .
45The format is rather simple. Each row consists of two
46items, a key and a value. When created by
47.Xr mknetid 8
48there are three kind of records.
49.Pp
50The first type is information about which gids a uid has:
51.Bd -literal
52unix.\*[Lt]uid\*[Gt]@\*[Lt]yp-domain\*[Gt] \*[Lt]uid\*[Gt]:\*[Lt]gid\*[Gt],\*[Lt]gid\*[Gt]
53.Ed
54.Pp
55The second type has informations about hosts:
56.Bd -literal
57unix.\*[Lt]hostname\*[Gt]@\*[Lt]yp-domain\*[Gt] 0:\*[Lt]hostname\*[Gt]
58.Ed
59.Pp
60The third type is records from a
61.Xr netid 5
62file other than the two types above.
63.Sh FILES
64.Bl -tag -width /etc/netid -compact
65.It Pa /etc/netid
66A file for lines not generated automatically by
67.Xr mknetid 8 .
68.El
69.Sh EXAMPLES
70A configuration file might appear as follows:
71.Bd -literal
72unix.10714@kaka 10714:400,10
73unix.jodie@kaka 0:jodie
74.Ed
75.Sh SEE ALSO
76.Xr mknetid 8 ,
77.Xr yp 8
78.Sh AUTHORS
79.An Mats O Jansson Aq moj@stacken.kth.se
80