Create .gitconfig for chrooted users
- by Vincent LITUR
I have several chrooted users on my server, and I want to install git for specific users.
I block at the command :
git config --global user.name "user_name"
I use this command connected as the user, and I got this error :
error: could not lock config file /home/username/.gitconfig: Permission denied
I tried to create the file from root, and then put chmod 755 and chown username .gitconfig, but I get the error.
Is there a way to do this ?
Edit : This question http://stackoverflow.com/questions/17908386/unable-to-create-gitconfig-file-for-user answers mine