Git server permission

Hi Forum,

I have created own git server and git server authenticated with Active directory to push/pull git repository with AD users.

I have issue,bydefault git repository and inside repository permission given 777 permission and its working but when changed permisson to 755 or change any other permission then push/pull is not working.

Below is working git

drwxrwsrwx 6 git git 4096 May 16 21:51 git
[root@git opt]# cd git
[root@git git]# ll
total 16
drwxrwsrwx 7 git git 4096 May 10 20:23 test.perl.git
drwxrwsrwx 7 git git 4096 May 10 20:23 test.powershell.git
drwxrwsrwx 7 root git 4096 May 16 21:03 security.git
[root@git git]# pwd
/opt/git
[root@git git]# pwd
/opt/git

When changed permission and push code on git then getting below error

test@Q1266 MINGW64 /d/git/security.git (master)
$ git push origin master
testuser@git.example.com’s password:
Connection closed by 1x.1xx.1xx.xx port 22
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Can you please let us know,how it will work if will give permission 770 or 755 to git directory & repository ?

Regards,

Gajanan Sapkal

Hi @gajanansapkal,

This post was moved to a different board that fits your topic of discussion a bit better. This means you’ll get better engagement on your post, and it keeps our community organized so users can more easily find information.

As you’ll notice, your topic is now here in the How to use Git and GitHub board. No action is needed on your part; you can continue the conversation as normal here.

Cheers!

Hi Forum,

Thanks , any update please.

Regards,

Gajanan Sapkal

Hi Forum,

i have resolved.

Regards,

Gajanan Sapkal