1netid(4)                         File Formats                         netid(4)
2
3
4

NAME

6       netid - netname database
7

SYNOPSIS

9       /etc/netid
10
11

DESCRIPTION

13       The  netid  file  is  a local source of information on mappings between
14       netnames (see secure_rpc(3NSL)) and user ids or hostnames in the  local
15       domain.  The netid file can be used in conjunction with, or instead of,
16       the  network source: NIS or  NIS+. The  publickey entry  in  the   nss‐
17       witch.conf  (see   nsswitch.conf(4))  file  determines  which  of these
18       sources will be queried by the system to translate  netnames  to  local
19       user ids or hostnames.
20
21
22       Each entry in the netid file is a single line of the form:
23
24         netname uid:gid, gid, gid...
25
26
27
28
29       or
30
31         netname       0:hostname
32
33
34
35
36       The  first  entry associates a local user id with a netname. The second
37       entry associates a hostname with a netname.
38
39
40       The  netid file field descriptions are as follows:
41
42       netname     The operating system independent network name for the  user
43                   or  host.  netname has one of two formats.  The format used
44                   to specify a host is of the form:
45
46                   unix.hostname@domain
47
48                   where  hostname is the name of the host and  domain is  the
49                   network domain name.
50
51                   The format used to specify a user id is of the form:
52
53                   unix.uid@domain
54
55                   where uid is the numerical id of the user and domain is the
56                   network domain name.
57
58
59       uid         The numerical id of the user (see   passwd(4)). When speci‐
60                   fying a host name, uid is always zero.
61
62
63       group       The  numerical  id  of  the  group the user belongs to (see
64                   group(4)). Several groups,  separated  by  commas,  may  be
65                   listed for a single uid.
66
67
68       hostname    The local hostname (see  hosts(4)).
69
70
71
72       Blank lines are ignored.  Any part of a line to the right of a `#' sym‐
73       bol is treated as a comment.
74

EXAMPLES

76       Example 1 A sample netid file.
77
78
79       Here is a sample netid file:
80
81
82         unix.789@West.Sun.COM    789:30,65
83         unix.123@Bldg_xy.Sun.COM 123:20,1521
84         unix.candlestick@campus1.bayarea.EDU    0:candlestick
85
86
87

FILES

89       /etc/group        groups file
90
91
92       /etc/hosts        hosts database
93
94
95       /etc/netid        netname database
96
97
98       /etc/passwd       password file
99
100
101       /etc/publickey    public key database
102
103

SEE ALSO

105       netname2user(3NSL),   secure_rpc(3NSL),   group(4),   hosts(4),    nss‐
106       witch.conf(4), passwd(4), publickey(4)
107
108
109
110SunOS 5.11                        23 May 1994                         netid(4)
Impressum