man: always use the same example in nss module documentation
Show the same recommended example file in all three man pages, just highlight the different, relevant parts. This should be less confusing for users, and clarify what we actually recommend how /etc/nsswitch.conf is set up.
This commit is contained in:
@@ -111,8 +111,8 @@
|
||||
<para>Here's an example <filename>/etc/nsswitch.conf</filename>
|
||||
file, that enables <command>myhostname</command> correctly:</para>
|
||||
|
||||
<programlisting>passwd: compat
|
||||
group: compat
|
||||
<programlisting>passwd: compat mymachines
|
||||
group: compat mymachines
|
||||
shadow: compat
|
||||
|
||||
hosts: files resolve mymachines <command>myhostname</command>
|
||||
|
||||
+2
-2
@@ -82,8 +82,8 @@
|
||||
<para>Here's an example <filename>/etc/nsswitch.conf</filename>
|
||||
file, that enables <command>resolve</command> correctly:</para>
|
||||
|
||||
<programlisting>passwd: compat
|
||||
group: compat
|
||||
<programlisting>passwd: compat mymachines
|
||||
group: compat mymachines
|
||||
shadow: compat
|
||||
|
||||
hosts: files <command>resolve</command> mymachines myhostname
|
||||
|
||||
Reference in New Issue
Block a user