Go to main content

man pages section 5: File Formats

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

nss(5)

Name

nss - configuration file for name service behavior

Synopsis

/etc/default/nss

Description

The /etc/default/nss configuration file controls the behavior of the name service switch routines outside of the source database mappings provided by the nsswitch.conf(5) configuration.

/etc/default/nss supports the following options:

NETID_AUTHORITATIVE

Changes the behavior of the name service lookups to use the netid table in response to the initgroups(3C) call. By default, initgroups() uses the group table. When NETID_AUTHORITATIVE is set to TRUE, initgroups() uses netid as the source for supplementary groups rather than the group table.

The name service administrator must ensure that the netid table contains valid supplementary group information for users. By default, the Oracle Solaris Network Information Services (NIS) Yellow Pages (YP) server keeps the members listed in the group table in sync with the netid table but this is not necessarily true of any given NIS (YP) service.

SORT_ADDRS

Changes the behavior of address sorting by host name lookup functions such as getaddrinfo(3C), gethostbyname(3C), getipnodebyname(3C), and netdir_getbyname(3C).

SORT_ADDRS=TRUE (the default) causes addresses to be sorted and favors addresses that are considered local, that is, those that are within the configured network space.

SORT_ADDRS=FALSE disables address sorting. Address lists are returned in the order in which they were received.

SORT_ADDRS=RANDOM addresses are returned in a random order.

Attributes

See attributes(7) for descriptions of the following attributes:

ATTRIBUTE TYPE
ATTRIBUTE VALUE
Availability
system/core-os
Interface Stability
Committed

See Also

getaddrinfo(3C), gethostbyname(3C), getipnodebyname(3C), initgroups(3C), netdir_getbyname(3C), nsswitch.conf(5), attributes(7)