From aa9ade1fba5f5cbf9427b786fbb41912e6ec39cf Mon Sep 17 00:00:00 2001 From: Xi Ruoyao Date: Thu, 29 Sep 2022 18:26:52 +0800 Subject: more clarification of "log in as lfs user" And, don't recommended to "log in as lfs through a DM" anymore: if you log in through a DM then start a terminal emulator, the first shell in the emulator is often a non-login shell. It's not something we expect. --- chapter04/addinguser.xml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'chapter04/addinguser.xml') diff --git a/chapter04/addinguser.xml b/chapter04/addinguser.xml index c82c67557..7903b5a84 100644 --- a/chapter04/addinguser.xml +++ b/chapter04/addinguser.xml @@ -68,11 +68,11 @@ useradd -s /bin/bash -g lfs -m -k /dev/null lfs - To enable logging in as lfs (as opposed - to switching to user lfs when logged - in as root, which does not require - the lfs user to have a password), - give lfs a password: + If you want to log in as &lfs-user; or switch to &lfs-user; from a + non-&root; user (as opposed to switching to user &lfs-user; + when logged in as &root;, which does not require the &lfs-user; user to + have a password), you need to set a password of &lfs-user;. Issue the + following command as the &root; user to set the password: passwd lfs @@ -90,9 +90,9 @@ esac If the prompt "lfs:~$" does not appear immediately, entering the fg command will fix the issue. - Next, login as user lfs. - This can be done via a virtual console, through a display manager, or with - the following substitute/switch user command: + Next, start a shell running as user &lfs-user;. This can be done by + logging in as &lfs-user; on a virtual console, or with the following + substitute/switch user command: su - lfs -- cgit v1.2.3-54-g00ecf