Go to main content

man pages section 4: File Formats

Exit Print View

Updated: July 2017
 
 

nss (4)

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. Not all name services can automatically keep the members listed in the group table in sync with the netid table.

SORT_ADDRS

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

SORT_ADDRS=TRUE

Causes addresses to be sorted and favour addresses that are considered local; those that are within the configured network space. By default, SORT_ADDRS is set to TRUE.

SORT_ADDRS=FALSE

Disables address sorting. Address list is returned in the order in which they were received.

SORT_ADDRS=RANDOM

Addresses are returned in a random order.

Attributes

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

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

See Also

getaddrinfo(3SOCKET), gethostbyname(3NSL), getipnodebyname(3SOCKET), initgroups(3C), nsswitch.conf(4), attributes(5)