aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Labastie <pierre.labastie@neuf.fr>2021-11-02 14:23:41 +0100
committerPierre Labastie <pierre.labastie@neuf.fr>2021-11-02 14:23:41 +0100
commit095286b709ec60e070ee798ffc12e133d289d15f (patch)
tree69d5b0c36b06291569f6496e402a40a319a4207a
parent747287d8adcd0881952c80451ce29a98d8225f17 (diff)
Revert the change /bin/bash->/usr/bin/bash
We are not sure what the interaction with /etc/shells is...
-rw-r--r--chapter07/createfiles.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/chapter07/createfiles.xml b/chapter07/createfiles.xml
index 85d24c6a6..e7e3c7868 100644
--- a/chapter07/createfiles.xml
+++ b/chapter07/createfiles.xml
@@ -61,7 +61,7 @@ EOF</userinput></screen>
command:</para>
<screen revision="sysv"><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"
-<literal>root:x:0:0:root:/root:/usr/bin/bash
+<literal>root:x:0:0:root:/root:/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
@@ -70,7 +70,7 @@ nobody:x:99:99:Unprivileged User:/dev/null:/usr/bin/false</literal>
EOF</userinput></screen>
<screen revision="systemd"><userinput>cat &gt; /etc/passwd &lt;&lt; "EOF"
-<literal>root:x:0:0:root:/root:/usr/bin/bash
+<literal>root:x:0:0:root:/root:/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
@@ -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:/usr/bin/bash" &gt;&gt; /etc/passwd
+<screen><userinput>echo "tester:x:101:101::/home/tester:/bin/bash" &gt;&gt; /etc/passwd
echo "tester:x:101:" &gt;&gt; /etc/group
install -o tester -d /home/tester</userinput></screen>