git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Permissions and authorisations in git repository
@ 2011-01-28 11:41 vikram2rhyme
  2011-01-28 12:06 ` Konstantin Khomoutov
  0 siblings, 1 reply; 5+ messages in thread
From: vikram2rhyme @ 2011-01-28 11:41 UTC (permalink / raw)
  To: git


Hello friends
I am wondering if there are any permission and authorization control over
git 
repository. I have gone through git manual but there is no discussion on it.
On the internet i searched but hardy i found anything. Please help me if
there
is any permission control in distributed environment in git repository
-- 
View this message in context: http://git.661346.n2.nabble.com/Permissions-and-authorisations-in-git-repository-tp5969556p5969556.html
Sent from the git mailing list archive at Nabble.com.

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

* Re: Permissions and authorisations in git repository
       [not found] <10431381.57687.1296214887819.JavaMail.trustmail@mail1.terreactive.ch>
@ 2011-01-28 11:55 ` Victor Engmark
  2011-01-28 17:01   ` Harry Johnson
  0 siblings, 1 reply; 5+ messages in thread
From: Victor Engmark @ 2011-01-28 11:55 UTC (permalink / raw)
  To: git

On 01/28/2011 12:41 PM, vikram2rhyme wrote:
>
> Hello friends
> I am wondering if there are any permission and authorization control over
> git
> repository. I have gone through git manual but there is no discussion on it.
> On the internet i searched but hardy i found anything. Please help me if
> there
> is any permission control in distributed environment in git repository

Git is independent of access control mechanisms - You can use whatever 
you want. For example, you could use the filesystem read/write 
permissions on a directory to control local access, or SSH permissions 
to allow remote access. See for example GitHub, which uses different 
protocols for different levels of access.

HTH,
-- 
Victor Engmark

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

* Re: Permissions and authorisations in git repository
  2011-01-28 11:41 vikram2rhyme
@ 2011-01-28 12:06 ` Konstantin Khomoutov
  2011-01-29 17:28   ` Enrico Weigelt
  0 siblings, 1 reply; 5+ messages in thread
From: Konstantin Khomoutov @ 2011-01-28 12:06 UTC (permalink / raw)
  To: vikram2rhyme; +Cc: git

On Fri, 28 Jan 2011 03:41:24 -0800 (PST)
vikram2rhyme <vikram2rhyme@gmail.com> wrote:

> I am wondering if there are any permission and authorization control
> over git repository.
[...]

In the simplest case -- r/w access via SSH -- those who know the
login/password or possess the necessary private key have (full) access
to the repository. The repository can also be made accessible for
read-only via Git protocol (as a whole as well). This can be used for
simple write/read access discrimination.
If a more fine-grained control
is needed, third-party tools exist: gitolite:
https://github.com/sitaramc/gitolite gitosis: http://swik.net/gitosis

Note that as Git does not suffer from a centralised VCS syndrome of
having a single repository shared by everyone involved, the problem
you're facing might not exist at all: every developer or a group of
related developers maintains their own repository and a "central"
repository (in whatever sense you're willing to put into it) is owned
by a special person or a group of persons.

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

* Re: Permissions and authorisations in git repository
  2011-01-28 11:55 ` Permissions and authorisations in git repository Victor Engmark
@ 2011-01-28 17:01   ` Harry Johnson
  0 siblings, 0 replies; 5+ messages in thread
From: Harry Johnson @ 2011-01-28 17:01 UTC (permalink / raw)
  To: Victor Engmark; +Cc: git

Git is independent of access control mechanisms to some degree,
however, if you use ssh and share a repository with other users you
will want to look into the core.sharedRepository config setting. Took
me a while to discover this.

Check 'git help config' and search for shared for the details.

HTH,
-Harry

On Fri, Jan 28, 2011 at 6:55 AM, Victor Engmark
<victor.engmark@terreactive.ch> wrote:
> On 01/28/2011 12:41 PM, vikram2rhyme wrote:
>>
>> Hello friends
>> I am wondering if there are any permission and authorization control over
>> git
>> repository. I have gone through git manual but there is no discussion on
>> it.
>> On the internet i searched but hardy i found anything. Please help me if
>> there
>> is any permission control in distributed environment in git repository
>
> Git is independent of access control mechanisms - You can use whatever you
> want. For example, you could use the filesystem read/write permissions on a
> directory to control local access, or SSH permissions to allow remote
> access. See for example GitHub, which uses different protocols for different
> levels of access.
>
> HTH,
> --
> Victor Engmark
> --
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

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

* Re: Permissions and authorisations in git repository
  2011-01-28 12:06 ` Konstantin Khomoutov
@ 2011-01-29 17:28   ` Enrico Weigelt
  0 siblings, 0 replies; 5+ messages in thread
From: Enrico Weigelt @ 2011-01-29 17:28 UTC (permalink / raw)
  To: git

* Konstantin Khomoutov <flatworm@users.sourceforge.net> wrote:

<snip>

In fact, git does not have any access control whatsoever. It relies
on what the underlying transport protocol allows it to do.

With ssh, you could wrap the commands into some script which checks,
the permissions on calling-in user or key (eg. restrict write access
on certain refs to certain people). You could do even more fancy
things like given everybody (or certain people) unrestricted write
access, but under the hood put their rename the updated refs
(eg. you can push 'master', but on the server, refs/heads/master
wont be overwritten, instead it goes to refs/heads/konstantin/master).

Some people (coming from strictly-central ideologies) might consider
git's access control angonsticity a drawback, but IMHO it's a very
good thing - git doesn't want to be a full-blown "out-of-the-box"
VCS (like, eg. clearcase), but more a lightweight toolkit to easily
build your own.


cu
-- 
----------------------------------------------------------------------
 Enrico Weigelt, metux IT service -- http://www.metux.de/

 phone:  +49 36207 519931  email: weigelt@metux.de
 mobile: +49 151 27565287  icq:   210169427         skype: nekrad666
----------------------------------------------------------------------
 Embedded-Linux / Portierung / Opensource-QM / Verteilte Systeme
----------------------------------------------------------------------

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

end of thread, other threads:[~2011-01-29 17:36 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <10431381.57687.1296214887819.JavaMail.trustmail@mail1.terreactive.ch>
2011-01-28 11:55 ` Permissions and authorisations in git repository Victor Engmark
2011-01-28 17:01   ` Harry Johnson
2011-01-28 11:41 vikram2rhyme
2011-01-28 12:06 ` Konstantin Khomoutov
2011-01-29 17:28   ` Enrico Weigelt

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).