source: BOOK/boot/common/shadow.xml@ 5a881b0

sysvinit
Last change on this file since 5a881b0 was a72db74, checked in by William Harrington <kb0iic@…>, 7 years ago

Shadow nologin should be installed and any remnants of Util-linux nologin should be removed. It is done.

  • Property mode set to 100644
File size: 2.0 KB
RevLine 
[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
[a72db74]25 <para os="a">Disable the installation of the <command>groups</command>
26 program and man pages, as better versions of these programs are provided by
27 Coreutils, Util-linux and Man-pages. Also, prevent Shadow from setting the
28 suid bit on its installed programs:</para>
[c140ee2]29
[196919d]30<screen os="b"><userinput>cp -v src/Makefile.in{,.orig}
[7b1982e]31sed -e 's/groups$(EXEEXT) //' \
[a7e4965]32 -e 's/\(^suidu*bins = \).*/\1\\/' \
[d3a81ee]33 src/Makefile.in.orig &gt; src/Makefile.in</userinput></screen>
[c140ee2]34
[7b1982e]35 <para os="c">Tell Shadow to use <command>passwd</command> in
[bf78dda]36 <filename class="directory">/tools/bin</filename>:</para>
[c140ee2]37
[7b1982e]38<screen os="d"><userinput>cat > config.cache &lt;&lt; "EOF"
[196919d]39shadow_cv_passwd_dir=/tools/bin
40EOF</userinput></screen>
[c140ee2]41
[7b1982e]42 <para os="e">Prepare Shadow for compilation:</para>
[64b4aba]43
[b27081c4]44<screen os="f"><userinput>./configure \
45 --prefix=/tools \
46 --build=${CLFS_HOST} \
47 --host=${CLFS_TARGET} \
[a7e4965]48 --cache-file=config.cache</userinput></screen>
[8a43782]49
50 <para os="k">Compile the package:</para>
51
52<screen os="l"><userinput>make</userinput></screen>
53
54 <para os="m">Install the package:</para>
55
56<screen os="n"><userinput>make install</userinput></screen>
[c140ee2]57
58 </sect2>
59
60 <sect2 role="content">
61 <title/>
62
63 <para>Details on this package are located in <xref
64 linkend="contents-shadow" role="."/></para>
65 </sect2>
66
67</sect1>
Note: See TracBrowser for help on using the repository browser.