Changeset 09202de
- Timestamp:
- Aug 11, 2014, 12:53:18 AM (10 years ago)
- Branches:
- clfs-3.0.0-systemd, master, systemd
- Children:
- 606a758
- Parents:
- b46be7d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/shadow.xml
rb46be7d r09202de 23 23 <title>Installation of Shadow</title> 24 24 25 <para os=" b">Disable the installation of the <command>groups</command> and25 <para os="a">Disable the installation of the <command>groups</command> and 26 26 <command>nologin</command> programs, as better versions 27 27 of these programs are provided by Coreutils and Util-linux:</para> 28 28 29 <screen os=" c"><userinput>cp -v src/Makefile.in{,.orig}29 <screen os="b"><userinput>cp -v src/Makefile.in{,.orig} 30 30 sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \ 31 31 src/Makefile.in.orig > src/Makefile.in</userinput></screen> 32 32 33 <para os=" d">Prepare Shadow for compilation:</para>33 <para os="c">Prevent Shadow from setting installed programs suid:</para> 34 34 35 <screen os=" e"><userinput>./configure --prefix=/tools \36 --build=${CLFS_HOST} --host=${CLFS_TARGET}</userinput></screen>35 <screen os="d"><userinput>cp -v src/Makefile.in{,.orig} 36 sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.in.orig > src/Makefile.in</userinput></screen> 37 37 38 <para os=" f">Tell Shadow to use <command>passwd</command> in38 <para os="e">Tell Shadow to use <command>passwd</command> in 39 39 <filename class="directory">/tools/bin</filename>:</para> 40 40 41 <screen os="g"><userinput>cp -v config.h{,.orig} 42 sed '/PASSWD_PROGRAM/s@/bin/passwd@/tools&@' config.h.orig > config.h</userinput></screen> 41 <screen os="f"><userinput>cat > config.cache << "EOF" 42 shadow_cv_passwd_dir=/tools/bin 43 EOF</userinput></screen> 43 44 44 <para os=" h">Prevent Shadow from setting installed programs suid:</para>45 <para os="g">Prepare Shadow for compilation:</para> 45 46 46 <screen os=" i"><userinput>cp -v src/Makefile{,.orig}47 sed 's/\(^suidu*bins = \).*/\1/' src/Makefile.orig > src/Makefile</userinput></screen>47 <screen os="h"><userinput>./configure --prefix=/tools \ 48 --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache</userinput></screen> 48 49 49 <para os=" j">Compile the package:</para>50 <para os="i">Compile the package:</para> 50 51 51 <screen os=" k"><userinput>make</userinput></screen>52 <screen os="j"><userinput>make</userinput></screen> 52 53 53 <para os=" l">Install the package:</para>54 <para os="k">Install the package:</para> 54 55 55 <screen os=" m"><userinput>make install</userinput></screen>56 <screen os="l"><userinput>make install</userinput></screen> 56 57 57 58 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.