* Mention sudoers in nsswitch.conf(5)
@ 2017-04-06 13:10 Florian Weimer
[not found] ` <885caec0-dded-e22f-8b55-08f2868ad059-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Florian Weimer @ 2017-04-06 13:10 UTC (permalink / raw)
To: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
[-- Attachment #1: Type: text/plain, Size: 150 bytes --]
It turns out that sudo drops things into nsswitch.conf, too. It has
been suggested that we should mention this in the manual page.
Thanks,
Florian
[-- Attachment #2: sudoers.patch --]
[-- Type: text/x-patch, Size: 893 bytes --]
diff --git a/man5/nsswitch.conf.5 b/man5/nsswitch.conf.5
index 1e0ec3c..7a5b744 100644
--- a/man5/nsswitch.conf.5
+++ b/man5/nsswitch.conf.5
@@ -28,7 +28,7 @@ nsswitch.conf \- Name Service Switch configuration file
.SH DESCRIPTION
The Name Service Switch (NSS) configuration file,
.IR /etc/nsswitch.conf ,
-is used by the GNU C Library to determine
+is used by the GNU C Library and certain other applications to determine
the sources from which to obtain name-service information in
a range of categories,
and in what order.
@@ -102,6 +102,14 @@ Shadow user passwords, used by
.BR getspnam (3)
and related functions.
.LP
+The GNU C Library ignores databases with unknown names. Some
+applications use this to implement special handling for their own
+databases. For example,
+.BR sudo (8)
+consults the
+.B sudoers
+database.
+.LP
Here is an example
.I /etc/nsswitch.conf
file:
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: Mention sudoers in nsswitch.conf(5)
[not found] ` <885caec0-dded-e22f-8b55-08f2868ad059-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2017-04-10 11:35 ` Michael Kerrisk (man-pages)
0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2017-04-10 11:35 UTC (permalink / raw)
To: Florian Weimer, linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
On 04/06/2017 03:10 PM, Florian Weimer wrote:
> It turns out that sudo drops things into nsswitch.conf, too. It has
> been suggested that we should mention this in the manual page.
Thanks, Florian. Patch applied.
Cheers,
Michael
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-04-10 11:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-06 13:10 Mention sudoers in nsswitch.conf(5) Florian Weimer
[not found] ` <885caec0-dded-e22f-8b55-08f2868ad059-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-04-10 11:35 ` Michael Kerrisk (man-pages)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox