mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-19 13:37:39 +00:00
98fcc378d5
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@4472 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
102 lines
2.6 KiB
XML
102 lines
2.6 KiB
XML
<?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;
|
|
]>
|
|
<sect1 id="ch-system-shadow" xreflabel="Shadow" role="wrap">
|
|
<title>Shadow-&shadow-version;</title>
|
|
<?dbhtml filename="shadow.html"?>
|
|
|
|
<indexterm zone="ch-system-shadow"><primary sortas="a-Shadow">Shadow</primary></indexterm>
|
|
|
|
<sect2 role="package"><title/>
|
|
|
|
<segmentedlist>
|
|
<segtitle>&buildtime;</segtitle>
|
|
<segtitle>&diskspace;</segtitle>
|
|
<seglistitem><seg>0.4 SBU</seg><seg>11 MB</seg></seglistitem>
|
|
</segmentedlist>
|
|
|
|
</sect2>
|
|
|
|
<sect2 role="installation">
|
|
<title>Installation of Shadow</title>
|
|
|
|
<para>Prepare Shadow for compilation:</para>
|
|
|
|
<screen><userinput>./configure --libdir=/lib --enable-shared</userinput></screen>
|
|
|
|
<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>
|
|
|
|
<para>Compile the package:</para>
|
|
|
|
<screen><userinput>make</userinput></screen>
|
|
|
|
<para>Then install it:</para>
|
|
|
|
<screen><userinput>make install</userinput></screen>
|
|
|
|
<para>Install two config files:</para>
|
|
|
|
<screen><userinput>cp etc/{limits,login.access} /etc</userinput></screen>
|
|
|
|
<para>Change a configuration file while copying it:</para>
|
|
|
|
<screen><userinput>sed -e's@#MD5_CRYPT_ENAB.no@MD5_CRYPT_ENAB yes@' \
|
|
-e 's@/var/spool/mail@/var/mail@' \
|
|
< etc/login.defs.linux > /etc/login.defs</userinput></screen>
|
|
|
|
<para>Move a program:</para>
|
|
|
|
<screen><userinput>mv /usr/bin/passwd /bin</userinput></screen>
|
|
|
|
<para>Move a library:</para>
|
|
|
|
<screen><userinput>mv /lib/libshadow.*a /usr/lib</userinput></screen>
|
|
|
|
<para>Create the following symlinks:</para>
|
|
|
|
<screen><userinput>rm /lib/libshadow.so
|
|
ln -sf ../../lib/libshadow.so.0 /usr/lib/libshadow.so</userinput></screen>
|
|
|
|
<para>Create a dir:</para>
|
|
|
|
<screen><userinput>mkdir /etc/default</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 id="conf-shadow" role="configuration"><title>Configuring Shadow</title>
|
|
|
|
<para>To enable shadowed passwords:</para>
|
|
|
|
<screen><userinput>pwconv</userinput></screen>
|
|
|
|
<para>To enable shadowed group passwords, run:</para>
|
|
|
|
<screen><userinput>grpconv</userinput></screen>
|
|
|
|
</sect2>
|
|
|
|
|
|
<sect2 role="configuration">
|
|
<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>
|
|
|
|
|
|
<sect2 id="contents-shadow" role="content"><title>Contents of Shadow</title>
|
|
|
|
<para>See testing</para>
|
|
|
|
</sect2>
|
|
|
|
</sect1>
|