Skip to content

Latest commit

 

History

History
55 lines (38 loc) · 1.19 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.19 KB

NSS usrfiles module

This is a NSS module which can read user information from files in the same format as /etc/passwd and /etc/group stored in the alternate location /usr/etc

As of version 2.27 the following files will be read by nss_usrfiles:

  • /usr/etc/group
  • /usr/etc/passwd
  • /usr/etc/shadow
  • /usr/etc/aliases
  • /usr/etc/ethers
  • /usr/etc/protocols
  • /usr/etc/rpc
  • /usr/etc/services

The sources are copied from the nss_files modules from glibc2 and adjusted for this project.

Usage

List the module the /etc/nsswitch.conf configuration file. For example:

    passwd: files usrfiles
    group:  files usrfiles

    # Other entries follow...

This will try to read files from /etc first, and under /usr/etc (using the usrfiles module).

Version scheme

Version numbers follow the numbering of the glibc releases from which the sources are taken.

Licensing

As the sources are taken from glibc, which is distributed under the terms of the LGPL 2.1, the same applies to the extra bits needed to make nss_usrfiles work.

See the file COPYING for full text and copying restrictions.