Changeset 95112ed for BOOK/final-preps
- Timestamp:
- Jul 1, 2006, 12:53:33 PM (18 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- f80f888
- Parents:
- 07114c98
- Location:
- BOOK/final-preps
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/final-preps/addinguser.xml
r07114c98 r95112ed 9 9 <?dbhtml filename="addinguser.html"?> 10 10 11 <title>Adding the LFS User</title>11 <title>Adding the CLFS User</title> 12 12 13 13 <para>When logged in as user <systemitem class="username">root</systemitem>, … … 16 16 You could use your own user name, but to make it easier to set up a clean 17 17 work environment, create a new user called <systemitem 18 class="username"> lfs</systemitem> as a member of a new group (also named19 <systemitem class="groupname"> lfs</systemitem>) and use this user during18 class="username">clfs</systemitem> as a member of a new group (also named 19 <systemitem class="groupname">clfs</systemitem>) and use this user during 20 20 the installation process. As <systemitem class="username">root</systemitem>, 21 21 issue the following commands to add the new user:</para> 22 22 23 <screen><userinput>groupadd lfs24 useradd -s /bin/bash -g lfs -m -k /dev/nulllfs</userinput></screen>23 <screen><userinput>groupadd clfs 24 useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen> 25 25 26 26 <variablelist> … … 31 31 <listitem> 32 32 <para>This makes <command>bash</command> the default shell for 33 user <systemitem class="username"> lfs</systemitem>.</para>33 user <systemitem class="username">clfs</systemitem>.</para> 34 34 </listitem> 35 35 </varlistentry> 36 36 37 37 <varlistentry> 38 <term><parameter>-g lfs</parameter></term>38 <term><parameter>-g clfs</parameter></term> 39 39 <listitem> 40 <para>This option adds user <systemitem class="username"> lfs</systemitem>41 to group <systemitem class="groupname"> lfs</systemitem>.</para>40 <para>This option adds user <systemitem class="username">clfs</systemitem> 41 to group <systemitem class="groupname">clfs</systemitem>.</para> 42 42 </listitem> 43 43 </varlistentry> … … 47 47 <listitem> 48 48 <para>This creates a home directory for <systemitem 49 class="username"> lfs</systemitem>.</para>49 class="username">clfs</systemitem>.</para> 50 50 </listitem> 51 51 </varlistentry> … … 61 61 62 62 <varlistentry> 63 <term><parameter> lfs</parameter></term>63 <term><parameter>clfs</parameter></term> 64 64 <listitem> 65 65 <para>This is the actual name for the created group and user.</para> … … 69 69 </variablelist> 70 70 71 <para>To log in as <systemitem class="username"> lfs</systemitem> (as72 opposed to switching to user <systemitem class="username"> lfs</systemitem>71 <para>To log in as <systemitem class="username">clfs</systemitem> (as 72 opposed to switching to user <systemitem class="username">clfs</systemitem> 73 73 when logged in as <systemitem class="username">root</systemitem>, which 74 does not require the <systemitem class="username"> lfs</systemitem> user75 to have a password), give <systemitem class="username"> lfs</systemitem>74 does not require the <systemitem class="username">clfs</systemitem> user 75 to have a password), give <systemitem class="username">clfs</systemitem> 76 76 a password:</para> 77 77 78 <screen><userinput>passwd lfs</userinput></screen>78 <screen><userinput>passwd clfs</userinput></screen> 79 79 80 <para>Grant <systemitem class="username"> lfs</systemitem> full access to80 <para>Grant <systemitem class="username">clfs</systemitem> full access to 81 81 <filename class="directory">$CLFS/cross-tools</filename> and 82 82 <filename class="directory">$CLFS/tools</filename> by making <systemitem 83 class="username"> lfs</systemitem> the directorys' owner:</para>83 class="username">clfs</systemitem> the directorys' owner:</para> 84 84 85 <screen><userinput>chown -v lfs $CLFS/tools86 chown -v lfs $CLFS/cross-tools</userinput></screen>85 <screen><userinput>chown -v clfs $CLFS/tools 86 chown -v clfs $CLFS/cross-tools</userinput></screen> 87 87 88 88 <para>If a separate working directory was created as suggested, 89 give user <systemitem class="username"> lfs</systemitem> ownership of this directory:</para>89 give user <systemitem class="username">clfs</systemitem> ownership of this directory:</para> 90 90 91 <screen><userinput>chown -v lfs $CLFS/sources</userinput></screen>91 <screen><userinput>chown -v clfs $CLFS/sources</userinput></screen> 92 92 93 <para>Next, login as user <systemitem class="username"> lfs</systemitem>.93 <para>Next, login as user <systemitem class="username">clfs</systemitem>. 94 94 This can be done via a virtual console, through a display manager, or 95 95 with the following substitute user command:</para> 96 96 97 <screen><userinput>su - lfs</userinput></screen>97 <screen><userinput>su - clfs</userinput></screen> 98 98 99 99 <para>The <quote><parameter>-</parameter></quote> instructs -
BOOK/final-preps/settingenviron.xml
r07114c98 r95112ed 13 13 <para os="a">Set up a good working environment by creating two new startup 14 14 files for the <command>bash</command> shell. While logged in as user 15 <systemitem class="username"> lfs</systemitem>, issue the following15 <systemitem class="username">clfs</systemitem>, issue the following 16 16 command to create a new <filename>.bash_profile</filename>:</para> 17 17 … … 20 20 EOF</userinput></screen> 21 21 22 <para os="c">When logged on as user <systemitem class="username"> lfs</systemitem>,22 <para os="c">When logged on as user <systemitem class="username">clfs</systemitem>, 23 23 the initial shell is usually a <emphasis>login</emphasis> shell which 24 24 reads the <filename>/etc/profile</filename> of the host (probably … … 42 42 <literal>set +h 43 43 umask 022 44 LFS=/mnt/lfs44 CLFS=/mnt/clfs 45 45 LC_ALL=POSIX 46 46 PATH=/cross-tools/bin:/bin:/usr/bin 47 export LFS LC_ALL PATH</literal>47 export CLFS LC_ALL PATH</literal> 48 48 EOF</userinput></screen> 49 49 … … 66 66 mode 644 and directories with mode 755).</para> 67 67 68 <para os="h">The <envar> LFS</envar> variable should be set to the68 <para os="h">The <envar>CLFS</envar> variable should be set to the 69 69 chosen mount point.</para> 70 70
Note:
See TracChangeset
for help on using the changeset viewer.