diff options
Diffstat (limited to 'chapter07')
-rw-r--r-- | chapter07/createfiles.xml | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml index 79fdaaf97..85d24c6a6 100644 --- a/chapter07/createfiles.xml +++ b/chapter07/createfiles.xml @@ -61,30 +61,30 @@ EOF</userinput></screen> command:</para> <screen revision="sysv"><userinput>cat > /etc/passwd << "EOF" -<literal>root:x:0:0:root:/root:/bin/bash -bin:x:1:1:bin:/dev/null:/bin/false -daemon:x:6:6:Daemon User:/dev/null:/bin/false -messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/bin/false -uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/bin/false -nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal> +<literal>root:x:0:0:root:/root:/usr/bin/bash +bin:x:1:1:bin:/dev/null:/usr/bin/false +daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false +messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false +uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/usr/bin/false +nobody:x:99:99:Unprivileged User:/dev/null:/usr/bin/false</literal> EOF</userinput></screen> <screen revision="systemd"><userinput>cat > /etc/passwd << "EOF" -<literal>root:x:0:0:root:/root:/bin/bash -bin:x:1:1:bin:/dev/null:/bin/false -daemon:x:6:6:Daemon User:/dev/null:/bin/false -messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/bin/false -systemd-bus-proxy:x:72:72:systemd Bus Proxy:/:/bin/false -systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/bin/false -systemd-journal-remote:x:74:74:systemd Journal Remote:/:/bin/false -systemd-journal-upload:x:75:75:systemd Journal Upload:/:/bin/false -systemd-network:x:76:76:systemd Network Management:/:/bin/false -systemd-resolve:x:77:77:systemd Resolver:/:/bin/false -systemd-timesync:x:78:78:systemd Time Synchronization:/:/bin/false -systemd-coredump:x:79:79:systemd Core Dumper:/:/bin/false -uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/bin/false -systemd-oom:x:81:81:systemd Out Of Memory Daemon:/:/bin/false -nobody:x:99:99:Unprivileged User:/dev/null:/bin/false</literal> +<literal>root:x:0:0:root:/root:/usr/bin/bash +bin:x:1:1:bin:/dev/null:/usr/bin/false +daemon:x:6:6:Daemon User:/dev/null:/usr/bin/false +messagebus:x:18:18:D-Bus Message Daemon User:/run/dbus:/usr/bin/false +systemd-bus-proxy:x:72:72:systemd Bus Proxy:/:/usr/bin/false +systemd-journal-gateway:x:73:73:systemd Journal Gateway:/:/usr/bin/false +systemd-journal-remote:x:74:74:systemd Journal Remote:/:/usr/bin/false +systemd-journal-upload:x:75:75:systemd Journal Upload:/:/usr/bin/false +systemd-network:x:76:76:systemd Network Management:/:/usr/bin/false +systemd-resolve:x:77:77:systemd Resolver:/:/usr/bin/false +systemd-timesync:x:78:78:systemd Time Synchronization:/:/usr/bin/false +systemd-coredump:x:79:79:systemd Core Dumper:/:/usr/bin/false +uuidd:x:80:80:UUID Generation Daemon User:/dev/null:/usr/bin/false +systemd-oom:x:81:81:systemd Out Of Memory Daemon:/:/usr/bin/false +nobody:x:99:99:Unprivileged User:/dev/null:/usr/bin/false</literal> EOF</userinput></screen> <para>The actual password for <systemitem class="username">root</systemitem> @@ -175,7 +175,7 @@ EOF</userinput></screen> user. We add this user here and delete this account at the end of that chapter.</para> -<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" >> /etc/passwd +<screen><userinput>echo "tester:x:101:101::/home/tester:/usr/bin/bash" >> /etc/passwd echo "tester:x:101:" >> /etc/group install -o tester -d /home/tester</userinput></screen> @@ -185,7 +185,7 @@ install -o tester -d /home/tester</userinput></screen> files have been created, user name and group name resolution will now work:</para> -<screen role="nodump"><userinput>exec /bin/bash --login +h</userinput></screen> +<screen role="nodump"><userinput>exec /usr/bin/bash --login +h</userinput></screen> <para>Note the use of the <parameter>+h</parameter> directive. This tells <command>bash</command> not to use its internal path hashing. Without this |