(admin) create user on the server which hosts git ( Edit

  • make sure, that the user and group ids are like on all our systems
    • you can see this with id <user> on the buildhost4
    • ssh <user>
    • id <user>
    • amou e.g. is 503
Username: amou
Full name: Apostolis M.
Uid (Leave empty for default): 503
Login group [amou]:
Login group is amou. Invite amou into other groups? []:
Login class [default]:
Shell (sh csh tcsh bash rbash git-shell nologin) [sh]: git-shell
Home directory [/home/amou]:
Home directory permissions (Leave empty for default):
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username   : amou
Password   : *****
Full Name  : Apostolis M.
Uid        : 503
Class      :
Groups     : amou
Home       : /home/amou
Home Mode  :
Shell      : /usr/local/bin/bash
Locked     : no
OK? (yes/no): yes
adduser: INFO: Successfully added (amou) to the user database.
Add another user? (yes/no): no

change the shell of a user:


chsh -s /usr/local/bin/bash rber

gitshell (highly recommended)

chsh -s /usr/local/libexec/git-core/git-shell rber