xref: /netbsd-src/usr.sbin/ypserv/mknetid/netid.5 (revision 3b01aba77a7a698587faaae455bbfe740923c1f5)
1.\"	$NetBSD: netid.5,v 1.3 1997/11/08 15:03:26 lukem 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.<uid>@<yp-domain> <uid>:<gid>,<gid>
53.Ed
54.Pp
55The second type has informations about hosts:
56.Bd -literal
57unix.<hostname>@<yp-domain> 0:<hostname>
58.Ed
59.Pp
60The third type is records from a
61.Xr netid 5
62file other than the two types above.
63.Sh EXAMPLES
64.Pp
65A configuration file might appear as follows:
66.Bd -literal
67unix.10714@kaka 10714:400,10
68unix.jodie@kaka 0:jodie
69.Ed
70.Sh FILES
71.Bl -tag -width /etc/netid -compact
72.It Pa /etc/netid
73A file for lines not generated automatically by
74.Xr mknetid 8 .
75.El
76.Sh SEE ALSO
77.Xr mknetid 8 ,
78.Xr yp 8
79.Sh AUTHOR
80Mats O Jansson <moj@stacken.kth.se>
81