git objects mode 755 vs 700
Greetings,
I have setup a git server for my company, but one problem I found is like the following problem:
[root@localhost objects]# pwd /home/git/repositories/testing.git/objects [root@localhost objects]# ls -l total 0
drwx------ 2 git git 59 Dec 11 03:04 0e drwx------ 2 git git 59 Dec 11 03:14 11 drwx------ 2 git git 59 Dec 11 03:12 1b drwxr-xr-x 2 git git 59 Dec 5 02:53 24 drwx------ 2 git git 59 Dec 11 03:01 39 drwx------ 2 git git 59 Dec 11 03:01 42 drwx------ 2 git git 59 Dec 11 03:01 47 drwxr-xr-x 2 git git 59 Dec 5 02:57 4c
As you can see, on the git server, take a repo ’testing.git’ as example, under the ‘objects’ directory, some sub-directory has 755 mode, but most of them are 700.
To work with reviewboard, I export ‘repositories’ directory to NFS as readonly mode, but I need sub-directories under ‘objects’ to be 755 mode.
Why some of them are of 755 but some 700? How can I set all sub-directories under ‘objects’ to be of 755 mode?
Signature · 1 line
Evan Li
Quoted 2 lines · Evan Li
Why some of them are of 755 but some 700? How can I set all sub-directories under ‘objects’ to be of 755 mode?
Some people who are pushing into the repository have 077 and some others have 022 as their umask, perhaps?
If that is the case, perhaps core.sharedRepository configuration setting is what you want to use.