2002-12-07 23:24:45 +08:00
|
|
|
<sect2>
|
2003-04-02 03:52:38 +08:00
|
|
|
<title>Re-installation of shadow to utilize PAM</title>
|
2002-12-07 23:24:45 +08:00
|
|
|
|
2003-04-06 08:30:53 +08:00
|
|
|
<screen>shadow requires:
|
|
|
|
<xref linkend="Linux_PAM"/></screen>
|
|
|
|
|
2003-04-09 08:10:43 +08:00
|
|
|
<para>Download the patch for shadow from <ulink url="&hfile-root;"/>.</para>
|
2003-02-13 05:43:52 +08:00
|
|
|
|
2002-12-07 23:24:45 +08:00
|
|
|
<para>Reinstall shadow by running the following commands:</para>
|
|
|
|
|
2003-02-13 05:43:52 +08:00
|
|
|
<para><screen><userinput>patch -Np1 -i ../shadow-4.0.3.patch &&
|
|
|
|
autoconf &&
|
2003-08-16 14:48:00 +08:00
|
|
|
LDFLAGS="-lpam -lpam_misc" ./configure --prefix=/usr --libdir=/usr/lib \
|
|
|
|
--enable-shared --with-libpam &&
|
2002-12-07 23:24:45 +08:00
|
|
|
make &&
|
|
|
|
make install &&
|
|
|
|
rm /bin/vipw &&
|
2003-08-16 14:48:00 +08:00
|
|
|
mv /bin/sg /usr/bin &&
|
|
|
|
mv /usr/lib/lib{misc,shadow}.so.0* /lib &&
|
2003-02-13 05:43:52 +08:00
|
|
|
ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &&
|
|
|
|
ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so &&
|
2002-12-07 23:24:45 +08:00
|
|
|
cp debian/securetty /etc/securetty</userinput></screen></para>
|
|
|
|
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|