Changeset aa9ade1
- Timestamp:
- 09/29/2022 10:26:52 AM (18 months ago)
- 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
- Location:
- chapter04
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter04/addinguser.xml
r199d14c raa9ade1 69 69 </variablelist> 70 70 71 <para> To enable logging in as <systemitem class="username">lfs</systemitem> (as opposed72 to switching to user <systemitem class="username">lfs</systemitem> when logged73 in as <systemitem class="username">root</systemitem>, which does not require74 the <systemitem class="username">lfs</systemitem> user to have a password),75 give <systemitem class="username">lfs</systemitem> apassword:</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> 76 76 77 77 <screen role="nodump"><userinput>passwd lfs</userinput></screen> … … 91 91 <command>fg</command> command will fix the issue.</para></note> 92 92 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 with95 the followingsubstitute/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> 96 96 97 97 <screen role="nodump"><userinput>su - lfs</userinput></screen> -
chapter04/settingenviron.xml
r199d14c raa9ade1 20 20 EOF</userinput></screen> 21 21 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 24 26 the <filename>/etc/profile</filename> of the host (probably containing some 25 27 settings and environment variables) and then <filename>.bash_profile</filename>.
Note:
See TracChangeset
for help on using the changeset viewer.