Add information about updating or reinstalling PAM, to avoid removing

important configuration files

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12621 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
Pierre Labastie 2014-01-23 09:49:25 +00:00
parent 514e1487a5
commit 5c6a9069dc

View File

@ -145,11 +145,34 @@
make</userinput></screen>
<para>
To test the results, a configuration file must be created. This file
will be removed after the tests have completed. Ensure there are no errors
produced by the tests before continuing the installation. First create the
configuration file by issuing the following commands as the
<systemitem class="username">root</systemitem> user:
To test the results, a suitable <filename>/etc/pam.d/other</filename>
configuration file must exist.
</para>
<caution>
<title>Reinstallation or upgrade of Linux PAM</title>
<para>
If you have a system with Linux PAM installed and working, be careful
when modifying the files in
<filename class="directory">/etc/pam.d</filename>, since your system
may become totally unusable. If you want to run the tests, you do not
need to create another <filename>/etc/pam.d/other</filename> file. The
installed one can be used for that purpose.
</para>
<para>
You should also be aware that <command>make install</command>
overwrites the configuration files in
<filename class="directory">/etc/security</filename> as well as
<filename>/etc/environment</filename. In case you
have modified those files, be sure to backup them.
</para>
</caution>
<para>
For a first installation, create the configuration file by issuing the
following commands as the <systemitem class="username">root</systemitem>
user:
</para>
<screen role="root"><userinput>install -v -m755 -d /etc/pam.d &amp;&amp;
@ -163,11 +186,13 @@ EOF</userinput></screen>
<para>
Now run the tests by issuing <command>make check</command>.
Ensure there are no errors produced by the tests before continuing the
installation.
</para>
<para>
Remove the configuration file created earlier by issuing the
following command as the
Only in case of a first installation, remove the configuration file
created earlier by issuing the following command as the
<systemitem class="username">root</systemitem> user:
</para>