source: BOOK/boot/common/shadow.xml@ 06441b8

systemd
Last change on this file since 06441b8 was 30d1e5c4, checked in by Chris Staub <chris@…>, 10 years ago

Provide a bit more detail in explanation for shadow

  • Property mode set to 100644
File size: 2.7 KB
Line 
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
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>
30
31<screen os="b"><userinput>cp -v src/Makefile.in{,.orig}
32sed -e 's/groups$(EXEEXT) //' \
33 -e 's/= nologin$(EXEEXT)/= /' \
34 -e 's/\(^suidu*bins = \).*/\1/' \
35 src/Makefile.in.orig &gt; src/Makefile.in</userinput></screen>
36
37 <para os="c">Tell Shadow to use <command>passwd</command> in
38 <filename class="directory">/tools/bin</filename>:</para>
39
40<screen os="d"><userinput>cat > config.cache &lt;&lt; "EOF"
41shadow_cv_passwd_dir=/tools/bin
42EOF</userinput></screen>
43
44 <para os="e">Prepare Shadow for compilation:</para>
45
46<screen os="f"><userinput>./configure --prefix=/tools \
47 --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache \
48 --enable-subordinate-ids=no</userinput></screen>
49
50 <variablelist os="g">
51 <title>The meaning of the configure options:</title>
52
53 <varlistentry os="h">
54 <term><parameter>--enable-subordinate-ids=no</parameter></term>
55 <listitem>
56 <para>Disable subordinate ids to allow Shadow to cross-compile
57 successfully.</para>
58 </listitem>
59 </varlistentry>
60
61 </variablelist>
62
63 <para os="i">Append to <filename>config.h</filename> since a test program
64 will not be ran when cross-compiling:</para>
65
66<screen os="j"><userinput>echo "#define ENABLE_SUBIDS 1" &gt;&gt; config.h</userinput></screen>
67
68 <para os="k">Compile the package:</para>
69
70<screen os="l"><userinput>make</userinput></screen>
71
72 <para os="m">Install the package:</para>
73
74<screen os="n"><userinput>make install</userinput></screen>
75
76 </sect2>
77
78 <sect2 role="content">
79 <title/>
80
81 <para>Details on this package are located in <xref
82 linkend="contents-shadow" role="."/></para>
83 </sect2>
84
85</sect1>
Note: See TracBrowser for help on using the repository browser.