diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index e10a884b3..e33fbbf38 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -20,8 +20,8 @@ the installation process. As root, issue the following commands to add the new user: -groupadd lfs -useradd -s /bin/bash -g lfs -m -k /dev/null lfs +groupadd &lfs-user; +useradd -s /bin/bash -g &lfs-user; -m -k /dev/null &lfs-user; This is what the command line options mean: @@ -74,15 +74,15 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs have a password), you need to set a password for &lfs-user;. Issue the following command as the &root; user to set the password: -passwd lfs +passwd &lfs-user; Grant lfs full access to all the directories under $LFS by making lfs the owner: -chown -v lfs $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} +chown -v &lfs-user; $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown -v lfs $LFS/lib64 ;; + x86_64) chown -v &lfs-user; $LFS/lib64 ;; esac In some host systems, the following su command does not complete @@ -94,7 +94,7 @@ esac logging in as &lfs-user; on a virtual console, or with the following substitute/switch user command: -su - lfs +su - &lfs-user; The - instructs su to start a login shell as opposed to a non-login shell. diff --git a/chapter07/changingowner.xml b/chapter07/changingowner.xml index 16c052b39..b2e0ad9d5 100644 --- a/chapter07/changingowner.xml +++ b/chapter07/changingowner.xml @@ -33,9 +33,9 @@ user root by running the following command: -chown --from lfs -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +chown --from &lfs-user; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown --from lfs -R root:root $LFS/lib64 ;; + x86_64) chown --from &lfs-user; -R root:root $LFS/lib64 ;; esac