]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
nsswitch.conf.5: Add list of files being read when "files" service is used
authorNikola Forró <nforro@redhat.com>
Fri, 13 Nov 2015 13:14:32 +0000 (14:14 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Wed, 2 Dec 2015 19:38:54 +0000 (20:38 +0100)
This is not mentioned anywhere. Users can assume that the file
being read is something like /etc/$DATABASE, but that's not
always the case. It's better to explicitly specify which
file is read for each respective database.  The list of
files was acquired from glibc source code.

Signed-off-by: Nikola Forró <nforro@redhat.com>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man5/nsswitch.conf.5

index 33b1c64b89051fb3ac498497cf413951a5b30c9a..c99073385ae6c06ed8aecc6920256211384a7c0f 100644 (file)
@@ -330,6 +330,52 @@ implements "nis" source.
 implements "nisplus" source.
 .PD
 .RE
+.LP
+The following files are read when "files" source is specified
+for respective databases:
+.RS 4
+.TP 12
+.PD 0
+.B aliases
+.I /etc/aliases
+.TP
+.B ethers
+.I /etc/ethers
+.TP
+.B group
+.I /etc/group
+.TP
+.B hosts
+.I /etc/hosts
+.TP
+.B initgroups
+.I /etc/group
+.TP
+.B netgroup
+.I /etc/netgroup
+.TP
+.B networks
+.I /etc/networks
+.TP
+.B passwd
+.I /etc/passwd
+.TP
+.B protocols
+.I /etc/protocols
+.TP
+.B publickey
+.I /etc/publickey
+.TP
+.B rpc
+.I /etc/rpc
+.TP
+.B services
+.I /etc/services
+.TP
+.B shadow
+.I /etc/shadow
+.PD
+.RE
 .SH NOTES
 Within each process that uses
 .BR nsswitch.conf ,