source: chapter06/shadowpwd-inst.xml@ eded582

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 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 eded582 was f26c68d, checked in by Gerard Beekmans <gerard@…>, 21 years ago

typo fix: ) should be }

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

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[487b8e6]1<sect2><title>&nbsp;</title><para>&nbsp;</para></sect2>
2
[6370fa6]3<sect2>
4<title>Installation of Shadow Password Suite</title>
5
[bc8b8a6]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
[6a9875d]8regarding passwords, such as how to enable the more secure MD5 passwords
[bc8b8a6]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>
[ea01d138]11
[6e50755]12<para>Programs like login, shutdown, uptime, and others want to read
13from and to the /var/run/utmp, /var/log/btmp and /var/log/wtmp. These
14files contain information about who is currently logged in. They also
15contain information about when the conmputer was last booted and
16shutdown and a record of bas login attempts.</para>
17
18<para>Create these files with their proper permissions by running the
19following commands:</para>
20
21<para><screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} &amp;&amp;
[f26c68d]22chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp}</userinput></screen></para>
[6e50755]23
[487b8e6]24<para>Prepare Shadow to be compiled:</para>
[6370fa6]25
[4f8a3af9]26<para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib \
27&nbsp;&nbsp;&nbsp;&nbsp;--enable-shared</userinput></screen></para>
[487b8e6]28
29<para>Continue with compiling the package:</para>
30
31<para><screen><userinput>make</userinput></screen></para>
32
33<para>Install the package:</para>
34
35<para><screen><userinput>make install</userinput></screen></para>
36
37<para>Shadow uses two files to configure authentication settings for
38the system. Install those config files:</para>
39
40<para><screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen></para>
41
42<para><filename class="directory">/var/spool/mail</filename> is the
43old location of the user mailboxes. The location that is used nowadays
44is /var/mail. Issue the following command to modify the mailbox
45location:</para>
46
47<para><screen><userinput>sed 's%/var/spool/mail%/var/mail%' \
48&nbsp;&nbsp;&nbsp;&nbsp;etc/login.defs.linux &gt; /etc/login.defs</userinput></screen></para>
49
50<para>According to the manpage of <userinput>vipw</userinput>,
51a <userinput>vigr</userinput> symlink should exist. Because the
52shadow installation procedure doesn't create this symlink, it
53must be created manually:</para>
54
55<para><screen><userinput>ln -s vipw /usr/sbin/vigr</userinput></screen></para>
56
57<para>The <filename>vipw</filename> link is currently pointing
58to a non-existing file. Since this file isn't needed here, remove
59it:</para>
60
61<para><screen><userinput>rm /bin/vipw</userinput></screen></para>
62
63<para>Move the <userinput>sg</userinput> program to the
64<filename class="directory">/usr/bin</filename> directory:</para>
65
66<para><screen><userinput>mv /bin/sg /usr/bin</userinput></screen></para>
67
68<para>Move Shadow's dynamic libraries to a more appropriate location:</para>
69
70<para><screen><userinput>mv /usr/lib/lib{shadow,misc}.so.0* /lib</userinput></screen></para>
71
72<para>The libraries have been moved, but some packages expect to
73find them in them in the
74<filename class="directory">/usr/lib</filename> directory. To account
75for this, create the following symlinks:</para>
76
77<para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &amp;&amp;
[8d8ab63]78ln -sf ../../lib/libmisc.so.0 /usr/lib/libmisc.so</userinput></screen></para>
[6370fa6]79
[819ecc65]80<para>Sh-utils and Shadow Password Suite each install a unique
81<filename>groups</filename> program. If you wish, you may remove the
82<filename>groups</filename> program installed by the Shadow Password
[487b8e6]83Suite:</para>
[819ecc65]84
85<para><screen><userinput>rm /bin/groups</userinput></screen></para>
[6370fa6]86
[819ecc65]87</sect2>
Note: See TracBrowser for help on using the repository browser.