2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect1 id="ch-system-shadow" xreflabel="Shadow" role="wrap">
|
2004-05-03 11:59:46 +01:00
|
|
|
<title>Shadow-&shadow-version;</title>
|
|
|
|
<?dbhtml filename="shadow.html"?>
|
|
|
|
|
|
|
|
<indexterm zone="ch-system-shadow"><primary sortas="a-Shadow">Shadow</primary></indexterm>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="package"><title/>
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>&buildtime;</segtitle>
|
|
|
|
<segtitle>&diskspace;</segtitle>
|
|
|
|
<seglistitem><seg>0.4 SBU</seg><seg>11 MB</seg></seglistitem>
|
|
|
|
</segmentedlist>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
</sect2>
|
2001-07-17 19:51:18 +01:00
|
|
|
|
2004-05-16 01:08:42 +01:00
|
|
|
<sect2 role="installation">
|
2003-11-01 22:31:50 +00:00
|
|
|
<title>Installation of Shadow</title>
|
|
|
|
|
2004-05-04 22:42:57 +01:00
|
|
|
<para>Prepare Shadow for compilation:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-06 18:24:50 +00:00
|
|
|
<screen><userinput>./configure --libdir=/lib --enable-shared</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-31 06:45:17 +00:00
|
|
|
<para>Remove the installation of the groups program, and it's man page:</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i 's/groups$(EXEEXT) //' src/Makefile
|
|
|
|
sed -i '/groups/d' man/Makefile</userinput></screen>
|
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
<para>Compile the package:</para>
|
|
|
|
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>Then install it:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Install two config files:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
|
|
|
<screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
|
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Change a configuration file while copying it:</para>
|
2004-02-07 10:48:44 +00:00
|
|
|
|
2004-12-07 17:35:36 +00:00
|
|
|
<screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
|
2004-12-19 18:29:03 +00:00
|
|
|
-e 's@/var/spool/mail@/var/mail@' \
|
2004-12-07 17:57:56 +00:00
|
|
|
< etc/login.defs.linux > /etc/login.defs</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Move a program:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-11-04 20:09:17 +00:00
|
|
|
<screen><userinput>mv /usr/bin/passwd /bin</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Move a library:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-06 18:24:50 +00:00
|
|
|
<screen><userinput>mv /lib/libshadow.*a /usr/lib</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Create the following symlinks:</para>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-07 17:35:36 +00:00
|
|
|
<screen><userinput>rm /lib/libshadow.so
|
2004-12-06 18:24:50 +00:00
|
|
|
ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
|
2003-11-01 22:31:50 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>Create a dir:</para>
|
2003-11-14 23:54:33 +00:00
|
|
|
|
|
|
|
<screen><userinput>mkdir /etc/default</userinput></screen>
|
|
|
|
|
2003-11-01 22:31:50 +00:00
|
|
|
</sect2>
|
2003-11-05 22:27:01 +00:00
|
|
|
|
2004-02-05 22:17:06 +00:00
|
|
|
|
2004-05-18 21:38:03 +01:00
|
|
|
<sect2 id="conf-shadow" role="configuration"><title>Configuring Shadow</title>
|
2004-02-05 22:17:06 +00:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>To enable shadowed passwords:</para>
|
2004-02-05 22:17:06 +00:00
|
|
|
|
2004-02-13 07:50:30 +00:00
|
|
|
<screen><userinput>pwconv</userinput></screen>
|
2004-02-05 22:17:06 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<para>To enable shadowed group passwords, run:</para>
|
2004-02-05 22:17:06 +00:00
|
|
|
|
2004-02-13 07:50:30 +00:00
|
|
|
<screen><userinput>grpconv</userinput></screen>
|
2004-02-05 22:17:06 +00:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2004-02-07 10:48:44 +00:00
|
|
|
|
2004-05-18 21:38:03 +01:00
|
|
|
<sect2 role="configuration">
|
2004-02-05 22:17:06 +00:00
|
|
|
<title>Setting the root password</title>
|
|
|
|
|
|
|
|
<para>Choose a password for user root and set it via:</para>
|
|
|
|
|
|
|
|
<screen><userinput>passwd root</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
2003-11-05 22:27:01 +00:00
|
|
|
|
2004-01-12 23:23:50 +00:00
|
|
|
|
2004-05-17 22:55:01 +01:00
|
|
|
<sect2 id="contents-shadow" role="content"><title>Contents of Shadow</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2004-12-21 19:38:32 +00:00
|
|
|
<para>See testing</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|