Changeset 7f5eda5 for BOOK/boot/common
- Timestamp:
- Aug 16, 2014, 10:23:33 PM (10 years ago)
- Branches:
- clfs-3.0.0-systemd, master, systemd
- Children:
- 1b8d044
- Parents:
- 7eea5e4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/boot/common/shadow.xml
r7eea5e4 r7f5eda5 23 23 <title>Installation of Shadow</title> 24 24 25 <para os="a">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> 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> 28 30 29 31 <screen os="b"><userinput>cp -v src/Makefile.in{,.orig} 30 sed -e 's/groups$(EXEEXT) //' -e 's/= nologin$(EXEEXT)/= /' \ 32 sed -e 's/groups$(EXEEXT) //' \ 33 -e 's/= nologin$(EXEEXT)/= /' \ 34 -e 's/\(^suidu*bins = \).*/\1/' \ 31 35 src/Makefile.in.orig > src/Makefile.in</userinput></screen> 32 36 33 <para os="c">Prevent Shadow from setting installed programs suid:</para> 34 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 38 <para os="e">Tell Shadow to use <command>passwd</command> in 37 <para os="c">Tell Shadow to use <command>passwd</command> in 39 38 <filename class="directory">/tools/bin</filename>:</para> 40 39 41 <screen os=" f"><userinput>cat > config.cache << "EOF"40 <screen os="d"><userinput>cat > config.cache << "EOF" 42 41 shadow_cv_passwd_dir=/tools/bin 43 42 EOF</userinput></screen> 44 43 45 <para os=" g">Prepare Shadow for compilation:</para>44 <para os="e">Prepare Shadow for compilation:</para> 46 45 47 <screen os=" h"><userinput>./configure --prefix=/tools \46 <screen os="f"><userinput>./configure --prefix=/tools \ 48 47 --build=${CLFS_HOST} --host=${CLFS_TARGET} --cache-file=config.cache</userinput></screen> 49 48 50 <para os=" i">Compile the package:</para>49 <para os="g">Compile the package:</para> 51 50 52 <screen os=" j"><userinput>make</userinput></screen>51 <screen os="h"><userinput>make</userinput></screen> 53 52 54 <para os=" k">Install the package:</para>53 <para os="i">Install the package:</para> 55 54 56 <screen os=" l"><userinput>make install</userinput></screen>55 <screen os="j"><userinput>make install</userinput></screen> 57 56 58 57 </sect2>
Note:
See TracChangeset
for help on using the changeset viewer.