{"thread":{"id":"38167","subject":"git objects mode 755 vs 700","startedAt":"2014-12-11T13:48:09Z","lastAt":"2014-12-11T22:50:44Z","messageCount":2,"participants":["Evan Li","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"253565","messageId":"8195C4C373DD42D6813F0181902AC916@gmail.com","threadId":"38167","inReplyTo":null,"subject":"git objects mode 755 vs 700","fromName":"Evan Li","fromEmail":"li.evan.chao@gmail.com","sentAt":"2014-12-11T13:48:09Z","receivedAt":"2014-12-11T13:48:09Z","isPatch":false,"sender":{"key":"li.evan.chao@gmail.com","avatar":null},"body":"Greetings,\n\nI have setup a git server for my company, but one problem I found is like the following problem:\n\n[root@localhost objects]# pwd\n/home/git/repositories/testing.git/objects\n[root@localhost objects]# ls -l\ntotal 0\ndrwx------ 2 git git 59 Dec 11 03:04 0e\ndrwx------ 2 git git 59 Dec 11 03:14 11\ndrwx------ 2 git git 59 Dec 11 03:12 1b\ndrwxr-xr-x 2 git git 59 Dec 5 02:53 24\ndrwx------ 2 git git 59 Dec 11 03:01 39\ndrwx------ 2 git git 59 Dec 11 03:01 42\ndrwx------ 2 git git 59 Dec 11 03:01 47\ndrwxr-xr-x 2 git git 59 Dec 5 02:57 4c\n\n\nAs 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.\n\nTo work with reviewboard, I export ‘repositories’ directory to NFS as readonly mode, but I need sub-directories under ‘objects’ to be 755 mode.\n\nWhy some of them are of 755 but some 700? How can I set all sub-directories under ‘objects’ to be of 755 mode?\n\n--  \nEvan Li\n"},{"id":"253587","messageId":"xmqqmw6tdcmz.fsf@gitster.dls.corp.google.com","threadId":"38167","inReplyTo":"8195C4C373DD42D6813F0181902AC916@gmail.com","subject":"Re: git objects mode 755 vs 700","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2014-12-11T22:50:44Z","receivedAt":"2014-12-11T22:50:44Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Evan Li <li.evan.chao@gmail.com> writes:\n\n> Why some of them are of 755 but some 700? How can I set all\n> sub-directories under ‘objects’ to be of 755 mode?\n\nSome people who are pushing into the repository have 077 and some\nothers have 022 as their umask, perhaps?\n\nIf that is the case, perhaps core.sharedRepository configuration\nsetting is what you want to use.\n"}]}