Changeset 29d3017a
- Timestamp:
- 01/11/2021 10:20:11 PM (3 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
general/prog/gitserver.xml
ra2082e52 r29d3017a 58 58 You will need to be user <systemitem class='username'>root</systemitem> 59 59 for the initial portion of configuration. Create the <systemitem 60 class="username">git</systemitem> user and group with the following61 commands:60 class="username">git</systemitem> user and group and set and unusable 61 password hash with the following commands: 62 62 </para> 63 63 64 64 <screen role="root"><userinput>groupadd -g &gitgid; git && 65 65 useradd -c "git Owner" -d /home/git -m -g git -s /usr/bin/git-shell -u &gituid; git && 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 66 sed -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 70 74 allowing access to the git repository using ssh keys. 71 75 </para>
Note:
See TracChangeset
for help on using the changeset viewer.