git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git objects mode 755 vs 700
@ 2014-12-11 13:48 Evan Li
  2014-12-11 22:50 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Evan Li @ 2014-12-11 13:48 UTC (permalink / raw
  To: git

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git objects mode 755 vs 700
  2014-12-11 13:48 git objects mode 755 vs 700 Evan Li
@ 2014-12-11 22:50 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2014-12-11 22:50 UTC (permalink / raw
  To: Evan Li; +Cc: git

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.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-12-11 22:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-11 13:48 git objects mode 755 vs 700 Evan Li
2014-12-11 22:50 ` Junio C Hamano

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).