git objects mode 755 vs 700

From: Evan Li <hidden>
Date: 2016-06-15 23:03:16

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?

--  
Evan Li
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help