[487b8e6] | 1 | <sect2><title> </title><para> </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
|
---|
| 7 | the Shadow hint. It discusses how you can make your system more secure
|
---|
[6a9875d] | 8 | regarding passwords, such as how to enable the more secure MD5 passwords
|
---|
[bc8b8a6] | 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>
|
---|
[ea01d138] | 11 |
|
---|
[6e50755] | 12 | <para>Programs like login, shutdown, uptime, and others want to read
|
---|
| 13 | from and to the /var/run/utmp, /var/log/btmp and /var/log/wtmp. These
|
---|
| 14 | files contain information about who is currently logged in. They also
|
---|
| 15 | contain information about when the conmputer was last booted and
|
---|
| 16 | shutdown and a record of bas login attempts.</para>
|
---|
| 17 |
|
---|
| 18 | <para>Create these files with their proper permissions by running the
|
---|
| 19 | following commands:</para>
|
---|
| 20 |
|
---|
| 21 | <para><screen><userinput>touch /var/run/utmp /var/log/{btmp,lastlog,wtmp} &&
|
---|
| 22 | chmod 644 /var/run/utmp /var/log/{btmp,lastlog,wtmp)</userinput></screen></para>
|
---|
| 23 |
|
---|
[487b8e6] | 24 | <para>Prepare Shadow to be compiled:</para>
|
---|
[6370fa6] | 25 |
|
---|
[4f8a3af9] | 26 | <para><screen><userinput>./configure --prefix=/usr --libdir=/usr/lib \
|
---|
| 27 | --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
|
---|
| 38 | the 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
|
---|
| 43 | old location of the user mailboxes. The location that is used nowadays
|
---|
| 44 | is /var/mail. Issue the following command to modify the mailbox
|
---|
| 45 | location:</para>
|
---|
| 46 |
|
---|
| 47 | <para><screen><userinput>sed 's%/var/spool/mail%/var/mail%' \
|
---|
| 48 | etc/login.defs.linux > /etc/login.defs</userinput></screen></para>
|
---|
| 49 |
|
---|
| 50 | <para>According to the manpage of <userinput>vipw</userinput>,
|
---|
| 51 | a <userinput>vigr</userinput> symlink should exist. Because the
|
---|
| 52 | shadow installation procedure doesn't create this symlink, it
|
---|
| 53 | must 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
|
---|
| 58 | to a non-existing file. Since this file isn't needed here, remove
|
---|
| 59 | it:</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
|
---|
| 73 | find them in them in the
|
---|
| 74 | <filename class="directory">/usr/lib</filename> directory. To account
|
---|
| 75 | for this, create the following symlinks:</para>
|
---|
| 76 |
|
---|
| 77 | <para><screen><userinput>ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so &&
|
---|
[8d8ab63] | 78 | ln -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] | 83 | Suite:</para>
|
---|
[819ecc65] | 84 |
|
---|
| 85 | <para><screen><userinput>rm /bin/groups</userinput></screen></para>
|
---|
[6370fa6] | 86 |
|
---|
[819ecc65] | 87 | </sect2>
|
---|