Author: thomas
Date: Mon Jan 11 13:19:14 2021
New Revision: 24101

Log:
Add a sed to set invalid password hash; set default branch name system wide

Modified:
   trunk/BOOK/general/prog/gitserver.xml

Modified: trunk/BOOK/general/prog/gitserver.xml
==============================================================================
--- trunk/BOOK/general/prog/gitserver.xml       Sun Jan 10 12:12:04 2021        
(r24100)
+++ trunk/BOOK/general/prog/gitserver.xml       Mon Jan 11 13:19:14 2021        
(r24101)
@@ -62,7 +62,8 @@
       </para>
 
 <screen role="root"><userinput>groupadd -g &gitgid; git &amp;&amp;
-useradd -c "git Owner" -d /home/git -m -g git -s /usr/bin/git-shell -u 
&gituid; git</userinput></screen>
+useradd -c "git Owner" -d /home/git -m -g git -s /usr/bin/git-shell -u 
&gituid; git &amp;&amp;
+sed -i '/git/s/git:.*:/git:NP:/' /etc/shadow</userinput></screen>
 
       <para>
         Create some files and directories in the home directory of the git user
@@ -89,7 +90,7 @@
         <systemitem class='username'>root</systemitem> user, run:
       </para>
 
-<screen role="nodump"><userinput>git config --global init.defaultBranch 
trunk</userinput></screen>
+<screen role="nodump"><userinput>git config --system init.defaultBranch 
trunk</userinput></screen>
 
       <para>
         Finally add the <filename>/usr/bin/git-shell</filename> entry to
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to