Skip to content
NSS plugin for glibc, which reads the data from /usr/etc instead of /etc
Shell C Other
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
m4
src
.gitignore
AUTHORS
COPYING
INSTALL
Makefile.am
NEWS
README.md
autogen.sh
config.guess
config.h.in
config.sub
configure.ac
ltmain.sh
update_source.sh

README.md

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.

You can’t perform that action at this time.