xref: /illumos-gate/usr/src/man/man5/netid.5 (revision b02947bf393d39f68e6c7fa8ccb98688f7f9c407)
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]
NETID 5 "November 22, 2021"
NAME
netid - netname database
SYNOPSIS
/etc/netid
DESCRIPTION
The netid file is a local source of information on mappings between netnames (see secure_rpc(3NSL)) and user ids or hostnames in the local domain. The netid file can be used in conjunction with, or instead of, a network nameservice. The publickey entry in the nsswitch.conf (see nsswitch.conf(5)) file determines which of these sources will be queried by the system to translate netnames to local user ids or hostnames.

Each entry in the netid file is a single line of the form:

netname uid:gid, gid, gid\|.\|.\|.

or

netname  0:hostname

The first entry associates a local user id with a netname. The second entry associates a hostname with a netname.

The netid file field descriptions are as follows: netname

The operating system independent network name for the user or host. netname has one of two formats. The format used to specify a host is of the form: unix.hostname@domain where hostname is the name of the host and domain is the network domain name. The format used to specify a user id is of the form: unix.uid@domain where uid is the numerical id of the user and domain is the network domain name.

uid

The numerical id of the user (see passwd(5)). When specifying a host name, uid is always zero.

group

The numerical id of the group the user belongs to (see group(5)). Several groups, separated by commas, may be listed for a single uid.

hostname

The local hostname (see hosts(5)).

Blank lines are ignored. Any part of a line to the right of a `#' symbol is treated as a comment.

EXAMPLES
Example 1 A sample netid file.

Here is a sample netid file:

unix.789@West.Example.COM 789:30,65
unix.123@Bldg_xy.Example.COM 123:20,1521
unix.candlestick@campus1.example.NET 0:candlestick
FILES
/etc/group

groups file

/etc/hosts

hosts database

/etc/netid

netname database

/etc/passwd

password file

/etc/publickey

public key database

SEE ALSO
netname2user (3NSL), secure_rpc (3NSL), group (5), hosts (5), nsswitch.conf (5), passwd (5), publickey (5)