1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
|
'\" te
.\" Copyright (c) 1994, Sun Microsystems, Inc. All Rights Reserved.
.\" Copyright 1989 AT&T
.\" 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.
.\" 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.
.\" 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]
.TH NETID 4 "Feb 25, 2017"
.SH NAME
netid \- netname database
.SH SYNOPSIS
.LP
.nf
\fB/etc/netid\fR
.fi
.SH DESCRIPTION
.LP
The \fBnetid\fR file is a local source of information on mappings between
netnames (see \fBsecure_rpc\fR(3NSL)) and user ids or hostnames in the local
domain. The \fBnetid\fR file can be used in conjunction with, or instead of,
a network nameservice. The \fBpublickey\fR entry in
the \fBnsswitch.conf\fR (see \fBnsswitch.conf\fR(4)) file determines which of
these sources will be queried by the system to translate netnames to local user
ids or hostnames.
.sp
.LP
Each entry in the \fBnetid\fR file is a single line of the form:
.sp
.in +2
.nf
\fInetname uid\fR\fB:\fR\fIgid, gid, gid\|.\|.\|.\fR
.fi
.in -2
.sp
.sp
.LP
or
.sp
.in +2
.nf
\fInetname\fR \fB 0:\fR\fBhostname\fR
.fi
.in -2
.sp
.sp
.LP
The first entry associates a local user id with a netname. The second entry
associates a hostname with a netname.
.sp
.LP
The \fBnetid\fR file field descriptions are as follows:
.sp
.ne 2
.na
\fB\fInetname\fR\fR
.ad
.RS 12n
The operating system independent network name for the user or host.
\fInetname\fR has one of two formats. The format used to specify a host is of
the form:
.sp
\fBunix.\fR\fBhostname\fR\fB@\fR\fIdomain\fR
.sp
where \fBhostname\fR is the name of the host and \fIdomain\fR is the network
domain name.
.sp
The format used to specify a user id is of the form:
.sp
\fBunix.\fR\fIuid\fR\fB@\fR\fIdomain\fR
.sp
where \fIuid\fR is the numerical id of the user and \fIdomain\fR is the network
domain name.
.RE
.sp
.ne 2
.na
\fB\fIuid\fR\fR
.ad
.RS 12n
The numerical id of the user (see \fBpasswd\fR(4)). When specifying a host
name, \fIuid\fR is always zero.
.RE
.sp
.ne 2
.na
\fB\fIgroup\fR\fR
.ad
.RS 12n
The numerical id of the group the user belongs to (see \fBgroup\fR(4)).
Several groups, separated by commas, may be listed for a single \fIuid\fR.
.RE
.sp
.ne 2
.na
\fB\fBhostname\fR\fR
.ad
.RS 12n
The local hostname (see \fBhosts\fR(4)).
.RE
.sp
.LP
Blank lines are ignored. Any part of a line to the right of a `\fB#\fR' symbol
is treated as a comment.
.SH EXAMPLES
.LP
\fBExample 1 \fRA sample \fBnetid\fR file.
.sp
.LP
Here is a sample \fBnetid\fR file:
.sp
.in +2
.nf
unix.789@West.Sun.COM 789:30,65
unix.123@Bldg_xy.Sun.COM 123:20,1521
unix.candlestick@campus1.bayarea.EDU 0:candlestick
.fi
.in -2
.sp
.SH FILES
.ne 2
.na
\fB\fB/etc/group\fR\fR
.ad
.RS 18n
groups file
.RE
.sp
.ne 2
.na
\fB\fB/etc/hosts\fR\fR
.ad
.RS 18n
hosts database
.RE
.sp
.ne 2
.na
\fB\fB/etc/netid\fR\fR
.ad
.RS 18n
netname database
.RE
.sp
.ne 2
.na
\fB\fB/etc/passwd\fR\fR
.ad
.RS 18n
password file
.RE
.sp
.ne 2
.na
\fB\fB/etc/publickey\fR\fR
.ad
.RS 18n
public key database
.RE
.SH SEE ALSO
.LP
\fBnetname2user\fR(3NSL), \fBsecure_rpc\fR(3NSL), \fBgroup\fR(4),
\fBhosts\fR(4), \fBnsswitch.conf\fR(4), \fBpasswd\fR(4), \fBpublickey\fR(4)
|