Go to main content

man pages section 5: File Formats

Exit Print View

Updated: Thursday, June 13, 2019
 
 

nss(5)

Name

nss - configuration file for initgroups

Synopsis

/etc/default/nss

Description

The /etc/default/nss configuration file provides methods for initgroups(3C) lookup method. The file also provides a method to change address sorting by name lookup functions. The file controls the behavior of the name service switch routines outside of the source database mappings provided by the /etc/nsswitch.conf file.

/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() 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 gethostbyname(3C), netdir_getbyname(3C), getaddrinfo(3C), and getipnodebyname(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)