Create .gitconfig for chrooted users

Posted by Vincent LITUR on Server Fault See other posts from Server Fault or by Vincent LITUR
Published on 2014-06-03T08:23:03Z Indexed on 2014/06/03 9:27 UTC
Read the original article Hit count: 315

Filed under:
|

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

© Server Fault or respective owner

Related posts about debian

Related posts about git