getconf: don't include xpg4 bits, gcc7 includes xpg6 bits for us
[unleashed.git] / share / man / man4 / netid.4
blobf58e1ce200312882151d7c54e42a04b34a503685
1 '\" te
2 .\" Copyright (c) 1994, Sun Microsystems, Inc. All Rights Reserved.
3 .\" Copyright 1989 AT&T
4 .\" The contents of this file are subject to the terms of the Common Development and Distribution License (the "License").  You may not use this file except in compliance with the License.
5 .\" You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE or http://www.opensolaris.org/os/licensing.  See the License for the specific language governing permissions and limitations under the License.
6 .\" When distributing Covered Code, include this CDDL HEADER in each file and include the License file at usr/src/OPENSOLARIS.LICENSE.  If applicable, add the following below this CDDL HEADER, with the fields enclosed by brackets "[]" replaced with your own identifying information: Portions Copyright [yyyy] [name of copyright owner]
7 .TH NETID 4 "Feb 25, 2017"
8 .SH NAME
9 netid \- netname database
10 .SH SYNOPSIS
11 .LP
12 .nf
13 \fB/etc/netid\fR
14 .fi
16 .SH DESCRIPTION
17 .LP
18 The \fBnetid\fR file is a local source of information on mappings between
19 netnames (see \fBsecure_rpc\fR(3NSL)) and user ids or hostnames in the local
20 domain. The \fBnetid\fR file can be used in conjunction with, or instead of,
21 a network nameservice. The \fBpublickey\fR entry in
22 the \fBnsswitch.conf\fR (see \fBnsswitch.conf\fR(4)) file determines which of
23 these sources will be queried by the system to translate netnames to local user
24 ids or hostnames.
25 .sp
26 .LP
27 Each entry in the \fBnetid\fR file is a single line of the form:
28 .sp
29 .in +2
30 .nf
31 \fInetname uid\fR\fB:\fR\fIgid, gid, gid\|.\|.\|.\fR
32 .fi
33 .in -2
34 .sp
36 .sp
37 .LP
39 .sp
40 .in +2
41 .nf
42 \fInetname\fR \fB      0:\fR\fBhostname\fR
43 .fi
44 .in -2
45 .sp
47 .sp
48 .LP
49 The first entry associates a local user id with a netname. The second entry
50 associates a hostname with a netname.
51 .sp
52 .LP
53 The  \fBnetid\fR file field descriptions are as follows:
54 .sp
55 .ne 2
56 .na
57 \fB\fInetname\fR\fR
58 .ad
59 .RS 12n
60 The operating system independent network name for the user or host.
61 \fInetname\fR has one of two formats. The format used to specify a host is of
62 the form:
63 .sp
64 \fBunix.\fR\fBhostname\fR\fB@\fR\fIdomain\fR
65 .sp
66 where \fBhostname\fR is the name of the host and \fIdomain\fR is the network
67 domain name.
68 .sp
69 The format used to specify a user id is of the form:
70 .sp
71 \fBunix.\fR\fIuid\fR\fB@\fR\fIdomain\fR
72 .sp
73 where \fIuid\fR is the numerical id of the user and \fIdomain\fR is the network
74 domain name.
75 .RE
77 .sp
78 .ne 2
79 .na
80 \fB\fIuid\fR\fR
81 .ad
82 .RS 12n
83 The numerical id of the user (see \fBpasswd\fR(4)). When specifying a host
84 name, \fIuid\fR is always zero.
85 .RE
87 .sp
88 .ne 2
89 .na
90 \fB\fIgroup\fR\fR
91 .ad
92 .RS 12n
93 The numerical id of the group the user belongs to (see \fBgroup\fR(4)).
94 Several groups, separated by commas, may be listed for a single \fIuid\fR.
95 .RE
97 .sp
98 .ne 2
99 .na
100 \fB\fBhostname\fR\fR
102 .RS 12n
103 The local hostname (see \fBhosts\fR(4)).
108 Blank lines are ignored. Any part of a line to the right of a `\fB#\fR' symbol
109 is treated as a comment.
110 .SH EXAMPLES
112 \fBExample 1 \fRA sample \fBnetid\fR file.
115 Here is a sample \fBnetid\fR file:
118 .in +2
120 unix.789@West.Sun.COM   789:30,65
121 unix.123@Bldg_xy.Sun.COM        123:20,1521
122 unix.candlestick@campus1.bayarea.EDU    0:candlestick
124 .in -2
127 .SH FILES
128 .ne 2
130 \fB\fB/etc/group\fR\fR
132 .RS 18n
133 groups file
137 .ne 2
139 \fB\fB/etc/hosts\fR\fR
141 .RS 18n
142 hosts database
146 .ne 2
148 \fB\fB/etc/netid\fR\fR
150 .RS 18n
151 netname database
155 .ne 2
157 \fB\fB/etc/passwd\fR\fR
159 .RS 18n
160 password file
164 .ne 2
166 \fB\fB/etc/publickey\fR\fR
168 .RS 18n
169 public key database
172 .SH SEE ALSO
174 \fBnetname2user\fR(3NSL), \fBsecure_rpc\fR(3NSL), \fBgroup\fR(4),
175 \fBhosts\fR(4), \fBnsswitch.conf\fR(4), \fBpasswd\fR(4), \fBpublickey\fR(4)