Changeset 29214ff in clfs-embedded for BOOK/final-preps


Ignore:
Timestamp:
Jul 3, 2013, 9:53:50 AM (11 years ago)
Author:
Andrew Bradford <andrew@…>
Branches:
master
Children:
7efa496
Parents:
b355162
Message:

addinguser: Use sudo

Rather than logging in as root, it's just more convenient.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • BOOK/final-preps/addinguser.xml

    rb355162 r29214ff  
    1818  class="username">clfs</systemitem> as a member of a new group (also named
    1919  <systemitem class="groupname">clfs</systemitem>) and use this user during
    20   the installation process. As <systemitem class="username">root</systemitem>,
    21   issue the following commands to add the new user:</para>
     20  the installation process.</para>
    2221
    23 <screen><userinput>groupadd clfs
    24 useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen>
     22<screen><userinput>sudo groupadd clfs
     23sudo useradd -s /bin/bash -g clfs -m -k /dev/null clfs</userinput></screen>
    2524
    2625  <variablelist>
     
    7675  a password:</para>
    7776
    78 <screen><userinput>passwd clfs</userinput></screen>
     77<screen><userinput>sudo passwd clfs</userinput></screen>
    7978
    8079  <para>Grant <systemitem class="username">clfs</systemitem> full access to
     
    8281  class="username">clfs</systemitem> the directory's owner:</para>
    8382
    84 <screen><userinput>chown -Rv clfs ${CLFS}</userinput></screen>
     83<screen><userinput>sudo chown -Rv clfs ${CLFS}</userinput></screen>
    8584
    8685  <para>Next, login as user <systemitem class="username">clfs</systemitem>.
Note: See TracChangeset for help on using the changeset viewer.