- Timestamp:
- 05/31/2020 07:38:18 PM (4 years ago)
- Branches:
- multilib-10.1
- Children:
- 37e35d2, f26ffa96
- Parents:
- 0e9d60e
- Location:
- chapter06
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bash.xml
r0e9d60e rd4fdde6 81 81 class="username">tester</systemitem> user:</para> 82 82 83 <screen><userinput remap="test">su tester -c "PATH=$PATH make tests"</userinput></screen> 83 <screen><userinput remap="test">su tester << EOF 84 PATH=$PATH make tests < $(tty) 85 EOF</userinput></screen> 84 86 85 87 <para>The <systemitem class="username">tester</systemitem> -
chapter06/coreutils.xml
r0e9d60e rd4fdde6 117 117 user <systemitem class="username">tester</systemitem> a part of it:</para> 118 118 119 <screen><userinput remap="test">echo "dummy:x:10 00:tester" >> /etc/group</userinput></screen>119 <screen><userinput remap="test">echo "dummy:x:102:tester" >> /etc/group</userinput></screen> 120 120 121 121 <para>Fix some of the permissions so that the non-root user can compile and -
chapter06/createfiles.xml
r0e9d60e rd4fdde6 40 40 software has been installed:</para> 41 41 42 <screen><userinput>ln -sv /tools/bin/{bash,cat,chmod,dd,echo, ln,mkdir,pwd,rm,stty,touch} /bin42 <screen><userinput>ln -sv /tools/bin/{bash,cat,chmod,dd,echo,false,ln,ls,mkdir,pwd,rm,stty,touch} /bin 43 43 ln -sv /tools/bin/{env,install,perl,printf} /usr/bin 44 44 ln -sv /tools/lib/libgcc_s.so{,.1} /usr/lib 45 45 ln -sv /tools/lib/libstdc++.{a,so{,.6}} /usr/lib 46 ln -sv /tools/lib/libfl.so* /usr/lib47 46 48 47 ln -sv bash /bin/sh … … 195 194 <listitem> 196 195 <para>Many shell scripts hard-code <filename>/bin/sh</filename>.</para> 197 </listitem>198 </varlistentry>199 200 <varlistentry>201 <term>202 <parameter><filename>/usr/lib/libfl.so*</filename></parameter>203 </term>204 <listitem>205 <para>This link allows binutils to find the flex library, and to206 build enhanced versions of ar and ranlib.</para>207 196 </listitem> 208 197 </varlistentry> … … 368 357 user here and delete this account at the end of the chapter.</para> 369 358 370 <screen><userinput>echo "tester:x: 101:101::/home/tester:/bin/bash" >> /etc/passwd359 <screen><userinput>echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" >> /etc/passwd 371 360 echo "tester:x:101:" >> /etc/group 372 361 install -o tester -d /home/tester</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.