1 | <sect2><title> </title><para> </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
|
---|
7 | the Shadow hint. It discusses how you can make your system more secure
|
---|
8 | regarding passwords, such as how to enable the more secure MD5 passwords
|
---|
9 | and how to get the most out of this Shadow package. The Shadow hint can
|
---|
10 | be 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 | --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
|
---|
26 | the 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
|
---|
31 | old location of the user mailboxes. The location that is used nowadays
|
---|
32 | is /var/mail. Issue the following command to modify the mailbox
|
---|
33 | location:</para>
|
---|
34 |
|
---|
35 | <para><screen><userinput>sed 's%/var/spool/mail%/var/mail%' \
|
---|
36 | etc/login.defs.linux > /etc/login.defs</userinput></screen></para>
|
---|
37 |
|
---|
38 | <para>According to the manpage of <userinput>vipw</userinput>,
|
---|
39 | a <userinput>vigr</userinput> symlink should exist. Because the
|
---|
40 | shadow installation procedure doesn't create this symlink, it
|
---|
41 | must 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
|
---|
46 | to a non-existing file. Since this file isn't needed here, remove
|
---|
47 | it:</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
|
---|
61 | find them in them in the
|
---|
62 | <filename class="directory">/usr/lib</filename> directory. To account
|
---|
63 | for this, create the following symlinks:</para>
|
---|
64 |
|
---|
65 | <para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &&
|
---|
66 | ln -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
|
---|
71 | Suite:</para>
|
---|
72 |
|
---|
73 | <para><screen><userinput>rm /bin/groups</userinput></screen></para>
|
---|
74 |
|
---|
75 | </sect2>
|
---|