Changeset aa9ade1


Ignore:
Timestamp:
09/29/2022 10:26:52 AM (2 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/pip3, xry111/rust-wip-20221008
Children:
a243b36
Parents:
199d14c
Message:

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.

Location:
chapter04
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • chapter04/addinguser.xml

    r199d14c raa9ade1  
    6969  </variablelist>
    7070
    71   <para>To enable logging in as <systemitem class="username">lfs</systemitem> (as opposed
    72   to switching to user <systemitem class="username">lfs</systemitem> when logged
    73   in as <systemitem class="username">root</systemitem>, which does not require
    74   the <systemitem class="username">lfs</systemitem> user to have a password),
    75   give <systemitem class="username">lfs</systemitem> a password:</para>
     71  <para>If you want to log in as &lfs-user; or switch to &lfs-user; from a
     72  non-&root; user (as opposed to switching to user &lfs-user;
     73  when logged in as &root;, which does not require the &lfs-user; user to
     74  have a password), you need to set a password of &lfs-user;.  Issue the
     75  following command as the &root; user to set the password:</para>
    7676
    7777<screen role="nodump"><userinput>passwd lfs</userinput></screen>
     
    9191  <command>fg</command> command will fix the issue.</para></note>
    9292
    93   <para>Next, login as user <systemitem class="username">lfs</systemitem>.
    94   This can be done via a virtual console, through a display manager, or with
    95   the following substitute/switch user command:</para>
     93  <para>Next, start a shell running as user &lfs-user;. This can be done by
     94  logging in as &lfs-user; on a virtual console, or with the following
     95  substitute/switch user command:</para>
    9696
    9797<screen role="nodump"><userinput>su - lfs</userinput></screen>
  • chapter04/settingenviron.xml

    r199d14c raa9ade1  
    2020EOF</userinput></screen>
    2121
    22   <para>When logged on as user <systemitem class="username">lfs</systemitem>,
    23   the initial shell is usually a <emphasis>login</emphasis> shell which reads
     22  <para>When logged on as user <systemitem class="username">lfs</systemitem>
     23  or switched to the &lfs-user; user using a <command>su</command> command
     24  with <quote><parameter>-</parameter></quote> option,
     25  the initial shell is a <emphasis>login</emphasis> shell which reads
    2426  the <filename>/etc/profile</filename> of the host (probably containing some
    2527  settings and environment variables) and then <filename>.bash_profile</filename>.
Note: See TracChangeset for help on using the changeset viewer.