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.
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 numbers follow the numbering of the glibc releases from which the sources are taken.
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.