Ignore:
Timestamp:
09/29/2022 10:26:52 AM (19 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
Children:
a243b36b
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.

File:
1 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>
Note: See TracChangeset for help on using the changeset viewer.