Author: bdubbs Date: Mon Jan 11 13:49:34 2021 New Revision: 24102 Log: Tweak sed for git server shadow entry
Modified: trunk/BOOK/general/prog/gitserver.xml Modified: trunk/BOOK/general/prog/gitserver.xml ============================================================================== --- trunk/BOOK/general/prog/gitserver.xml Mon Jan 11 13:19:14 2021 (r24101) +++ trunk/BOOK/general/prog/gitserver.xml Mon Jan 11 13:49:34 2021 (r24102) @@ -63,7 +63,7 @@ <screen role="root"><userinput>groupadd -g &gitgid; git && useradd -c "git Owner" -d /home/git -m -g git -s /usr/bin/git-shell -u &gituid; git && -sed -i '/git/s/git:.*:/git:NP:/' /etc/shadow</userinput></screen> +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 -- http://lists.linuxfromscratch.org/listinfo/blfs-book FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page