aboutsummaryrefslogtreecommitdiffstats
path: root/chapter05/createfiles.xml
diff options
context:
space:
mode:
authorPierre Labastie <pieere@linuxfromscratch.org>2020-05-31 20:01:42 +0000
committerPierre Labastie <pieere@linuxfromscratch.org>2020-05-31 20:01:42 +0000
commit264dfd9e05b9595d78642119c9cf43eee5558084 (patch)
treeb68069365982691375e3c8030f69b9ba500bcdf3 /chapter05/createfiles.xml
parentae7f075dd6185f9ec93d5aedbb46e98511f25235 (diff)
Update to upstream r11882
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross-chap5@11883 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter05/createfiles.xml')
-rw-r--r--chapter05/createfiles.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/chapter05/createfiles.xml b/chapter05/createfiles.xml
index ce1f67ba7..aed8d79da 100644
--- a/chapter05/createfiles.xml
+++ b/chapter05/createfiles.xml
@@ -160,7 +160,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" &gt;&gt; /etc/passwd
+<screen><userinput>echo "tester:x:$(ls -n $(tty) | cut -d" " -f3):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>