source: BOOK/boot/common/shadow.xml @ d3a81ee

clfs-3.0.0-sysvinitsysvinit
Last change on this file since d3a81ee was d3a81ee, checked in by Chris Staub <chris@…>, 8 years ago

Replaced redirection operators with &gt;

  • Property mode set to 100644
File size: 2.1 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="b">Disable the installation of the <command>groups</command> and
26    <command>nologin</command> programs, as better versions
27    of these programs are provided by Coreutils and Util-linux:</para>
28
29<screen os="c"><userinput>cp -v src/Makefile.in{,.orig}
30sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \
31    src/Makefile.in.orig &gt; src/Makefile.in</userinput></screen>
32
33    <para os="d">Prepare Shadow for compilation:</para>
34
35<screen os="e"><userinput>./configure --prefix=/tools \
36    --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>
37
38    <para os="f">Tell Shadow to use <command>passwd</command> in
39    <filename class="directory">/tools/bin</filename>:</para>
40
41<screen os="g"><userinput>cp -v config.h{,.orig}
42sed '/PASSWD_PROGRAM/s@/bin/passwd@/tools&amp;@' config.h.orig &gt; config.h</userinput></screen>
43
44    <para os="h">Prevent Shadow from setting installed programs suid:</para>
45
46<screen os="i"><userinput>cp -v src/Makefile{,.orig}
47sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.orig &gt; src/Makefile</userinput></screen>
48
49    <para os="j">Compile the package:</para>
50
51<screen os="k"><userinput>make</userinput></screen>
52
53    <para os="l">Install the package:</para>
54
55<screen os="m"><userinput>make install</userinput></screen>
56
57  </sect2>
58
59  <sect2 role="content">
60    <title/>
61
62    <para>Details on this package are located in <xref
63    linkend="contents-shadow" role="."/></para>
64  </sect2>
65
66</sect1>
Note: See TracBrowser for help on using the repository browser.