git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* RE: Git-daemon messing up permissions for gitweb
@ 2006-06-09 20:52 Post, Mark K
  2006-06-09 21:06 ` Junio C Hamano
  2006-06-10 21:30 ` Git-daemon messing up permissions for gitweb Alex Riesen
  0 siblings, 2 replies; 15+ messages in thread
From: Post, Mark K @ 2006-06-09 20:52 UTC (permalink / raw)
  To: Linus Torvalds, Junio C Hamano; +Cc: git

Since umask isn't an environment variable, per se, I'm not sure how this
will change anything.

One other thing I noticed is that init-db.c spells core.sharedRepository
with a capital R, but setup.c spells it "core.sharedrepository" with no
upper case letters.  Would this make any difference to anything I'm
seeing? 


Mark Post

-----Original Message-----
From: Linus Torvalds [mailto:torvalds@osdl.org] 
Sent: Friday, June 09, 2006 4:44 PM
To: Junio C Hamano
Cc: git@vger.kernel.org; Post, Mark K
Subject: Re: Git-daemon messing up permissions for gitweb



On Fri, 9 Jun 2006, Junio C Hamano wrote:
>
> But that should be tweakable by configuring what sshd does for
> the user, shouldn't it?  The "LOGIN PROCESS" section from man
> sshd(8) seems to talk about $HOME/.ssh/environment, for example.

Yeah. That's probably the right place to set things up.

		Linus

^ permalink raw reply	[flat|nested] 15+ messages in thread
* RE: [PATCH] shared repository settings enhancement.
@ 2006-06-11 17:32 Post, Mark K
  0 siblings, 0 replies; 15+ messages in thread
From: Post, Mark K @ 2006-06-11 17:32 UTC (permalink / raw)
  To: Linus Torvalds, Junio C Hamano; +Cc: git

Speaking as a non-developer sysadmin, if I were to make a suggestion, it
would be this:
  [core]
     sharedrepository = {useumask | useronly | userandgroup |
worldreadable}


Mark Post

-----Original Message-----
From: git-owner@vger.kernel.org [mailto:git-owner@vger.kernel.org] On
Behalf Of Linus Torvalds
Sent: Saturday, June 10, 2006 12:09 AM
To: Junio C Hamano
Cc: git@vger.kernel.org
Subject: Re: [PATCH] shared repository settings enhancement.

On Fri, 9 Jun 2006, Junio C Hamano wrote:
> 
> Having said that, I do not think the distinction is that
> important; I would rather make the core.sharedrepository = true
> to mean an equivalent of "chmod go+rX" (it does "chmod g+rX"
> currently).

How about making it be

	[core]
		sharedrepository = {umask | user | group | everybody}

and allow the old boolean expression syntax to mean "0/false means
umask, 
1/true means group".

So you'd have:

 - umask/0/false means "use 0777 permissions with default umask"
 - user means "use 0500 permissions"
 - group means "use 0550 permissions"
 - everybody means "use 0555 permissions"

(where "5" is r-x, and only for directories, and obviously degenerates
to 
just "4" aka r-- for regular files).

That sounds really pretty self-explanatory and obvious, wouldn't you
say?

			Linus

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

end of thread, other threads:[~2006-06-11 17:33 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-09 20:52 Git-daemon messing up permissions for gitweb Post, Mark K
2006-06-09 21:06 ` Junio C Hamano
2006-06-10  0:35   ` [PATCH/RFC] Retire SIMPLE_*** stuff Junio C Hamano
2006-06-10 14:13     ` [PATCH] Built-in git-get-tar-commit-id (was: [PATCH/RFC] Retire SIMPLE_*** stuff.) Rene Scharfe
2006-06-10  0:39   ` [PATCH] shared repository settings enhancement Junio C Hamano
2006-06-10  0:46     ` Linus Torvalds
2006-06-10  1:38       ` Jakub Narebski
2006-06-10  3:49       ` Junio C Hamano
2006-06-10  4:08         ` Linus Torvalds
2006-06-10  4:19           ` Junio C Hamano
2006-06-10  4:39             ` Linus Torvalds
2006-06-10 21:30 ` Git-daemon messing up permissions for gitweb Alex Riesen
2006-06-10 21:41   ` Linus Torvalds
2006-06-10 22:30     ` Alex Riesen
  -- strict thread matches above, loose matches on Subject: below --
2006-06-11 17:32 [PATCH] shared repository settings enhancement Post, Mark K

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 NNTP newsgroup(s).