threads / discuss / 38167

git objects mode 755 vs 700

Subject: git objects mode 755 vs 700

## tl;dr

2 messages between Dec 11, 2014 and Dec 11, 2014.

replies: 1people: 2as markdown or json

Evan Li· Dec 11, 2014, 13:48 UTC · lore
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

Junio C Hamano· Dec 11, 2014, 22:50 UTC · re: Evan Li · lore

Re: git objects mode 755 vs 700

Evan Li <li.evan.chao@gmail.com> writes:
> 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.

← back to recent threads