Changeset 29d3017a


Ignore:
Timestamp:
01/11/2021 10:20:11 PM (8 months ago)
Author:
Thomas Trepl <thomas@…>
Branches:
10.1, 11.0, qt5new, trunk, xry111/git-date, xry111/git-date-for-trunk, xry111/git-date-test
Children:
0c8e745
Parents:
a2082e52
Message:

Fix sed for password hash

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@24103 af4574ff-66df-0310-9fd7-8a98e5e911e0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • general/prog/gitserver.xml

    ra2082e52 r29d3017a  
    5858        You will need to be user <systemitem class='username'>root</systemitem>
    5959        for the initial portion of configuration. Create the <systemitem
    60         class="username">git</systemitem> user and group with the following
    61         commands:
     60        class="username">git</systemitem> user and group and set and unusable
     61        password hash with the following commands:
    6262      </para>
    6363
    6464<screen role="root"><userinput>groupadd -g &gitgid; git &amp;&amp;
    6565useradd -c "git Owner" -d /home/git -m -g git -s /usr/bin/git-shell -u &gituid; git &amp;&amp;
    66 sed -i '/^git:/s/^git:.*:/git:NP:/' /etc/shadow</userinput></screen>
    67 
    68       <para>
    69         Create some files and directories in the home directory of the git user
     66sed -i '/^git:/s/^git:[^:]:/git:NP:/' /etc/shadow</userinput></screen>
     67
     68      <para>
     69        Putting in an unuable password hash (replacing the <literal>!</literal>
     70        by <literal>NP</literal>) unlocks the account but it cannot be used
     71        to login via password authentication. That is required by
     72        <application>sshd</application> to work properly.
     73        Next, create some files and directories in the home directory of the git user
    7074        allowing access to the git repository using ssh keys.
    7175      </para>
Note: See TracChangeset for help on using the changeset viewer.