NSS altfiles module
This is a NSS module which can read user information from files
in the same format as
/etc/group stored in an
alternate location (
/lib by default).
As of version 2.19.0, the module supports also files mimicking
other files from
/etc, and which file types are supported can
be selected at build time:
List the module the
/etc/nsswitch.conf configuration file.
passwd: files altfiles group: files altfiles # Other entries follow...
This will try to read files from
/etc first, and under
/lib (using the
altfiles module). Modifications will be
stored in the files under
/etc (e.g. when using
to change an user passwords).
./configure && make && make install dance will
configure script allows to change the install
path and the path to the alternative data files:
./configure --prefix=/installdir/path --datadir=/var
To select which file types will be supported, use the
The example above would build an
altfiles NSS module that
will read user information from
which is to be installed under
To ease the task of packagers, the
DESTDIR variable can
be passed to
make install DESTDIR=/tmp/fakerootdir
Version numbers follow the numbering of the eglibc releases,
adding a local revision number:
For example version
2.13.0 would contain the source files
from eglibc 2.13, and the base modifications to make it the
altfiles module; version
2.15.3 would contain the source
files from eglibc 2.15, and the base modifications plus three
Starting from version 2.19.0, version numbers follow glibc2 versions, as eglibc is no longer developed because its changes were merged back into glibc2.
Git tags do also follow this versioning.
As eglibc and glibc are distributed under the terms of the
LGPL 2.1, the same applies to the extra bits needed to make
See the COPYING file in the source directory for the full text of the license.