- Timestamp:
- 05/31/2020 05:33:35 PM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, 12.2, 12.2-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/loongarch-12.2, xry111/mips64el, xry111/multilib, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- 0e9723a
- Parents:
- 5a430f1
- Location:
- chapter06
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/bash.xml
r5a430f1 ra3260cbb 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
r5a430f1 ra3260cbb 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
r5a430f1 ra3260cbb 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 … … 335 335 user here and delete this account at the end of the chapter.</para> 336 336 337 <screen><userinput>echo "tester:x: 101:101::/home/tester:/bin/bash" >> /etc/passwd337 <screen><userinput>echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):101::/home/tester:/bin/bash" >> /etc/passwd 338 338 echo "tester:x:101:" >> /etc/group 339 339 install -o tester -d /home/tester</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.