LDP/LDP/retired/LFS/chapter06/shadowpwd-inst.xml

35 lines
1.4 KiB
XML

<sect2>
<title>Installation of Shadow Password Suite</title>
<para>Before you install this package, you may want to have a look at
the Shadow hint. It discusses how you can make your system more secure
regarding passwords, such as how to enable the more secure MD5 passwords,
and how to get the most out of this Shadow package. The Shadow hint can
be found at <ulink url="&hints-root;shadowpasswd_plus.txt"/>.</para>
<para>Install the Shadow Password Suite by running the
following commands:</para>
<para><screen><userinput>./configure --prefix=/usr \
&nbsp;&nbsp;&nbsp;&nbsp;--libdir=/usr/lib --enable-shared &amp;&amp;
make &amp;&amp;
make install &amp;&amp;
cp etc/{limits,login.access} /etc &amp;&amp;
sed 's%/var/spool/mail%/var/mail%' \
&nbsp;&nbsp;&nbsp;&nbsp;etc/login.defs.linux &gt; /etc/login.defs &amp;&amp;
ln -s vipw /usr/sbin/vigr &amp;&amp;
rm /bin/vipw &amp;&amp;
mv /bin/sg /usr/bin &amp;&amp;
mv /usr/lib/lib{shadow,misc}.so.0* /lib &amp;&amp;
ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &amp;&amp;
ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen></para>
<para>Sh-utils and Shadow Password Suite each install a unique
<filename>groups</filename> program. If you wish, you may remove the
<filename>groups</filename> program installed by the Shadow Password
Suite by running the following command:</para>
<para><screen><userinput>rm /bin/groups</userinput></screen></para>
</sect2>