aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04/settingenviron.xml
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2022-09-29 18:26:52 +0800
committerXi Ruoyao <xry111@xry111.site>2022-09-29 18:26:52 +0800
commitaa9ade1fba5f5cbf9427b786fbb41912e6ec39cf (patch)
tree7323db97bcf48c2eaff4a7dc58e00583b707dab2 /chapter04/settingenviron.xml
parent199d14c9970b368d2f35d37610cf53d92e510373 (diff)
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.
Diffstat (limited to 'chapter04/settingenviron.xml')
-rw-r--r--chapter04/settingenviron.xml6
1 files changed, 4 insertions, 2 deletions
diff --git a/chapter04/settingenviron.xml b/chapter04/settingenviron.xml
index e40e4a45b..a57246217 100644
--- a/chapter04/settingenviron.xml
+++ b/chapter04/settingenviron.xml
@@ -19,8 +19,10 @@
<literal>exec env -i HOME=$HOME TERM=$TERM PS1='\u:\w\$ ' /bin/bash</literal>
EOF</userinput></screen>
- <para>When logged on as user <systemitem class="username">lfs</systemitem>,
- the initial shell is usually a <emphasis>login</emphasis> shell which reads
+ <para>When logged on as user <systemitem class="username">lfs</systemitem>
+ or switched to the &lfs-user; user using a <command>su</command> command
+ with <quote><parameter>-</parameter></quote> option,
+ the initial shell is a <emphasis>login</emphasis> shell which reads
the <filename>/etc/profile</filename> of the host (probably containing some
settings and environment variables) and then <filename>.bash_profile</filename>.
The <command>exec env -i.../bin/bash</command> command in the