Changeset 29d3017a


Ignore:
Timestamp:
01/11/2021 10:20:11 PM (3 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
10.1, 11.0, 11.1, 11.2, 11.3, 12.0, 12.1, kea, ken/TL2024, ken/inkscape-core-mods, ken/tuningfonts, lazarus, lxqt, plabs/newcss, plabs/python-mods, python3.11, qt5new, rahul/power-profiles-daemon, renodr/vulkan-addition, trunk, upgradedb, xry111/intltool, xry111/llvm18, xry111/soup3, xry111/test-20220226, xry111/xf86-video-removal
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.