source: chapter06/shadowpwd-inst.xml@ 4f8a3af9

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.0 6.1 6.1.1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk v4_1 v5_0 v5_1 v5_1_1 xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 4f8a3af9 was 4f8a3af9, checked in by Gerard Beekmans <gerard@…>, 21 years ago

QA Chap6 part2

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2404 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.9 KB
Line 
1<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
2
3<sect2>
4<title>Installation of Shadow Password Suite</title>
5
6<para>Before you install this package, you may want to have a look at
7the Shadow hint. It discusses how you can make your system more secure
8regarding passwords, such as how to enable the more secure MD5 passwords
9and how to get the most out of this Shadow package. The Shadow hint can
10be found at <ulink url="&hints-root;shadowpasswd_plus.txt"/>.</para>
11
12<para>Prepare Shadow to be compiled:</para>
13
14<para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib \
15&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared</userinput></screen></para>
16
17<para>Continue with compiling the package:</para>
18
19<para><screen><userinput>make</userinput></screen></para>
20
21<para>Install the package:</para>
22
23<para><screen><userinput>make install</userinput></screen></para>
24
25<para>Shadow uses two files to configure authentication settings for
26the system. Install those config files:</para>
27
28<para><screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen></para>
29
30<para><filename class="directory">/var/spool/mail</filename> is the
31old location of the user mailboxes. The location that is used nowadays
32is /var/mail. Issue the following command to modify the mailbox
33location:</para>
34
35<para><screen><userinput>sed 's%/var/spool/mail%/var/mail%' \
36&nbsp;&nbsp;&nbsp;&nbsp;etc/login.defs.linux &gt; /etc/login.defs</userinput></screen></para>
37
38<para>According to the manpage of <userinput>vipw</userinput>,
39a <userinput>vigr</userinput> symlink should exist. Because the
40shadow installation procedure doesn't create this symlink, it
41must be created manually:</para>
42
43<para><screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen></para>
44
45<para>The <filename>vipw</filename> link is currently pointing
46to a non-existing file. Since this file isn't needed here, remove
47it:</para>
48
49<para><screen><userinput>rm /bin/vipw</userinput></screen></para>
50
51<para>Move the <userinput>sg</userinput> program to the
52<filename class="directory">/usr/bin</filename> directory:</para>
53
54<para><screen><userinput>mv /bin/sg /usr/bin</userinput></screen></para>
55
56<para>Move Shadow's dynamic libraries to a more appropriate location:</para>
57
58<para><screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen></para>
59
60<para>The libraries have been moved, but some packages expect to
61find them in them in the
62<filename class="directory">/usr/lib</filename> directory. To account
63for this, create the following symlinks:</para>
64
65<para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &amp;&amp;
66ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen></para>
67
68<para>Sh-utils and Shadow Password Suite each install a unique
69<filename>groups</filename> program. If you wish, you may remove the
70<filename>groups</filename> program installed by the Shadow Password
71Suite:</para>
72
73<para><screen><userinput>rm /bin/groups</userinput></screen></para>
74
75</sect2>
Note: See TracBrowser for help on using the repository browser.