Ignore:
Timestamp:
10/31/2021 07:00:21 PM (2 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
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, arm, bdubbs/gcc13, 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/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
d02074e9, d352b98
Parents:
843d015
Message:

Package updates
Update to gawk-5.1.1.
Update to meson-0.60.0.
Update to libcap-2.60.
Update to gdbm-1.22.
Update to file-5.41.
Update to linux-5.14.15.
Update to iana-etc-20211025.
Update to tzdata-2021e.

Change /bin to /usr/bin in passwd, and revisedchroot.
Fix systemd for new meson.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/createfiles.xml

    r843d015 r1f201845  
    6262
    6363<screen revision="sysv"><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"
    64 <literal>root:x:0:0:root:/root:/bin/bash
    65 bin:x:1:1:bin:/dev/null:/bin/false
    66 daemon:x:6:6:Daemon User:/dev/null:/bin/false
    67 messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/bin/false
    68 uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/bin/false
    69 nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal>
     64<literal>root:x:0:0:root:/root:/usr/bin/bash
     65bin:x:1:1:bin:/dev/null:/usr/bin/false
     66daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false
     67messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false
     68uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/usr/bin/false
     69nobody:x:99:99:Unprivileged User:/dev/null:/usr/bin/false</literal>
    7070EOF</userinput></screen>
    7171
    7272<screen revision="systemd"><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"
    73 <literal>root:x:0:0:root:/root:/bin/bash
    74 bin:x:1:1:bin:/dev/null:/bin/false
    75 daemon:x:6:6:Daemon User:/dev/null:/bin/false
    76 messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/bin/false
    77 systemd-bus-proxy:x:72:72:systemd Bus Proxy:/:/bin/false
    78 systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/bin/false
    79 systemd-journal-remote:x:74:74:systemd Journal Remote:/:/bin/false
    80 systemd-journal-upload:x:75:75:systemd Journal Upload:/:/bin/false
    81 systemd-network:x:76:76:systemd Network Management:/:/bin/false
    82 systemd-resolve:x:77:77:systemd Resolver:/:/bin/false
    83 systemd-timesync:x:78:78:systemd Time Synchronization:/:/bin/false
    84 systemd-coredump:x:79:79:systemd Core Dumper:/:/bin/false
    85 uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/bin/false
    86 systemd-oom:x:81:81:systemd Out Of Memory Daemon:/:/bin/false
    87 nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal>
     73<literal>root:x:0:0:root:/root:/usr/bin/bash
     74bin:x:1:1:bin:/dev/null:/usr/bin/false
     75daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false
     76messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false
     77systemd-bus-proxy:x:72:72:systemd Bus Proxy:/:/usr/bin/false
     78systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/usr/bin/false
     79systemd-journal-remote:x:74:74:systemd Journal Remote:/:/usr/bin/false
     80systemd-journal-upload:x:75:75:systemd Journal Upload:/:/usr/bin/false
     81systemd-network:x:76:76:systemd Network Management:/:/usr/bin/false
     82systemd-resolve:x:77:77:systemd Resolver:/:/usr/bin/false
     83systemd-timesync:x:78:78:systemd Time Synchronization:/:/usr/bin/false
     84systemd-coredump:x:79:79:systemd Core Dumper:/:/usr/bin/false
     85uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/usr/bin/false
     86systemd-oom:x:81:81:systemd Out Of Memory Daemon:/:/usr/bin/false
     87nobody:x:99:99:Unprivileged User:/dev/null:/usr/bin/false</literal>
    8888EOF</userinput></screen>
    8989
     
    176176  chapter.</para>
    177177
    178 <screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
     178<screen><userinput>echo "tester:x:101:101::/home/tester:/usr/bin/bash" &gt;&gt; /etc/passwd
    179179echo "tester:x:101:" &gt;&gt; /etc/group
    180180install -o tester -d /home/tester</userinput></screen>
     
    186186  work:</para>
    187187
    188 <screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen>
     188<screen role="nodump"><userinput>exec /usr/bin/bash --login +h</userinput></screen>
    189189
    190190  <para>Note the use of the <parameter>+h</parameter> directive. This tells
Note: See TracChangeset for help on using the changeset viewer.