From 6528f7572074201a9cd3152b4e028fc117e138e5 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Sun, 29 Dec 2024 15:57:31 +0100 Subject: [PATCH] Use as elements for lfs user and group The preceding commit uses elements to mark the lfs user and group in commands. Unfortunately, this change the rendering in html, because now lfs appears in an italic font. Using or allows parsing the XML for jhalfs, but does not change the html rendering. --- chapter04/addinguser.xml | 12 ++++++------ chapter07/changingowner.xml | 4 ++-- general.ent | 2 ++ 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index e33fbbf38..e1d130b95 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-user; -useradd -s /bin/bash -g &lfs-user; -m -k /dev/null &lfs-user; +groupadd &lfs-groupname; +useradd -s /bin/bash -g &lfs-groupname; -m -k /dev/null &lfs-username; This is what the command line options mean: @@ -74,15 +74,15 @@ useradd -s /bin/bash -g &lfs-user; -m -k /dev/null &lfs-user; -passwd &lfs-user; +passwd &lfs-username; Grant lfs full access to all the directories under $LFS by making lfs the owner: -chown -v &lfs-user; $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} +chown -v &lfs-username; $LFS/{usr{,/*},lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown -v &lfs-user; $LFS/lib64 ;; + x86_64) chown -v &lfs-username; $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-user; +su - &lfs-username; 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 b2e0ad9d5..178c7836e 100644 --- a/chapter07/changingowner.xml +++ b/chapter07/changingowner.xml @@ -33,9 +33,9 @@ user root by running the following command: -chown --from &lfs-user; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} +chown --from &lfs-username; -R root:root $LFS/{usr,lib,var,etc,bin,sbin,tools} case $(uname -m) in - x86_64) chown --from &lfs-user; -R root:root $LFS/lib64 ;; + x86_64) chown --from &lfs-username; -R root:root $LFS/lib64 ;; esac diff --git a/general.ent b/general.ent index 4e1480324..b3bce5ae8 100644 --- a/general.ent +++ b/general.ent @@ -134,6 +134,8 @@ root"> lfs"> +lfs"> +lfs"> devtmpfs"> /etc/fstab"> /boot">