[c140ee2] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-shadow" role="wrap">
|
---|
| 9 | <?dbhtml filename="shadow.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Shadow-&shadow-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-boot-shadow">
|
---|
| 14 | <primary sortas="a-Shadow">Shadow</primary>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 19 | href="../../final-system/common/shadow.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Shadow</title>
|
---|
| 24 |
|
---|
[7f5eda5] | 25 | <para os="a">Run the following <command>sed</command> command to disable
|
---|
| 26 | the installation of the <command>groups</command> and
|
---|
| 27 | <command>nologin</command> programs, as better versions of these programs
|
---|
| 28 | are provided by other packages, and prevent Shadow from setting the suid
|
---|
| 29 | bit on its installed programs:</para>
|
---|
[c140ee2] | 30 |
|
---|
[09202de] | 31 | <screen os="b"><userinput>cp -v src/Makefile.in{,.orig}
|
---|
[7f5eda5] | 32 | sed -e 's/groups$(EXEEXT) //' \
|
---|
| 33 | -e 's/= nologin$(EXEEXT)/= /' \
|
---|
| 34 | -e 's/\(^suidu*bins = \).*/\1/' \
|
---|
[fcc84cc] | 35 | src/Makefile.in.orig > src/Makefile.in</userinput></screen>
|
---|
[c140ee2] | 36 |
|
---|
[7f5eda5] | 37 | <para os="c">Tell Shadow to use <command>passwd</command> in
|
---|
[bf78dda] | 38 | <filename class="directory">/tools/bin</filename>:</para>
|
---|
[c140ee2] | 39 |
|
---|
[7f5eda5] | 40 | <screen os="d"><userinput>cat > config.cache << "EOF"
|
---|
[09202de] | 41 | shadow_cv_passwd_dir=/tools/bin
|
---|
| 42 | EOF</userinput></screen>
|
---|
[c140ee2] | 43 |
|
---|
[7f5eda5] | 44 | <para os="e">Prepare Shadow for compilation:</para>
|
---|
[64b4aba] | 45 |
|
---|
[7cd7f99] | 46 | <screen os="f"><userinput>./configure \
|
---|
| 47 | --prefix=/tools \
|
---|
| 48 | --build=${CLFS_HOST} \
|
---|
| 49 | --host=${CLFS_TARGET} \
|
---|
| 50 | --cache-file=config.cache \
|
---|
[8cd97f2] | 51 | --enable-subordinate-ids=no</userinput></screen>
|
---|
[64b4aba] | 52 |
|
---|
[8cd97f2] | 53 | <variablelist os="g">
|
---|
| 54 | <title>The meaning of the configure options:</title>
|
---|
[c140ee2] | 55 |
|
---|
[8cd97f2] | 56 | <varlistentry os="h">
|
---|
| 57 | <term><parameter>--enable-subordinate-ids=no</parameter></term>
|
---|
| 58 | <listitem>
|
---|
[30d1e5c4] | 59 | <para>Disable subordinate ids to allow Shadow to cross-compile
|
---|
| 60 | successfully.</para>
|
---|
[8cd97f2] | 61 | </listitem>
|
---|
| 62 | </varlistentry>
|
---|
[c140ee2] | 63 |
|
---|
[8cd97f2] | 64 | </variablelist>
|
---|
[c140ee2] | 65 |
|
---|
[fdca770] | 66 | <para os="i">Append to <filename>config.h</filename> since a test program
|
---|
| 67 | will not be ran when cross-compiling:</para>
|
---|
[8cd97f2] | 68 |
|
---|
[d817f8a] | 69 | <screen os="j"><userinput>echo "#define ENABLE_SUBIDS 1" >> config.h</userinput></screen>
|
---|
[8cd97f2] | 70 |
|
---|
| 71 | <para os="k">Compile the package:</para>
|
---|
| 72 |
|
---|
| 73 | <screen os="l"><userinput>make</userinput></screen>
|
---|
| 74 |
|
---|
| 75 | <para os="m">Install the package:</para>
|
---|
| 76 |
|
---|
| 77 | <screen os="n"><userinput>make install</userinput></screen>
|
---|
[c140ee2] | 78 |
|
---|
| 79 | </sect2>
|
---|
| 80 |
|
---|
| 81 | <sect2 role="content">
|
---|
| 82 | <title/>
|
---|
| 83 |
|
---|
| 84 | <para>Details on this package are located in <xref
|
---|
| 85 | linkend="contents-shadow" role="."/></para>
|
---|
| 86 | </sect2>
|
---|
| 87 |
|
---|
| 88 | </sect1>
|
---|