* use git-daemon by git://IP/path?
@ 2009-06-12 12:13 Kārlis Repsons
2009-06-12 13:54 ` Dirk Süsserott
2009-06-12 15:48 ` use git-daemon by git://IP/path? Pau Garcia i Quiles
0 siblings, 2 replies; 6+ messages in thread
From: Kārlis Repsons @ 2009-06-12 12:13 UTC (permalink / raw
To: git
[-- Attachment #1: Type: text/plain, Size: 646 bytes --]
Hello git users and writers!
I am new to git, but, having read manuals and grasping the concepts of it, I
would like to first say thanks to all those, who created it!
Things would be fine, but I am having really bad ssh permission problems in
here: for example, if there is an empty, initialised git archive and it is
pulled to over ssh, the created files have permissions only u=rwX, no more.
Then subsequently git pulling doesn't work. Maybe you know how to solve it?
Also, in general, how can it be set up, that >1 people have a write access to
the same repository? Only by using the same login?
Kind regards,
Kārlis
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: use git-daemon by git://IP/path?
2009-06-12 12:13 use git-daemon by git://IP/path? Kārlis Repsons
@ 2009-06-12 13:54 ` Dirk Süsserott
2009-06-12 14:16 ` Jeff King
2009-06-12 14:24 ` git shared repository & permission problems Kārlis Repsons
2009-06-12 15:48 ` use git-daemon by git://IP/path? Pau Garcia i Quiles
1 sibling, 2 replies; 6+ messages in thread
From: Dirk Süsserott @ 2009-06-12 13:54 UTC (permalink / raw
To: Ka-rlis Repsons; +Cc: git
Am 12.06.2009 14:13 schrieb Ka-rlis Repsons:
> Hello git users and writers!
>
> I am new to git, but, having read manuals and grasping the concepts of it, I
> would like to first say thanks to all those, who created it!
>
> Things would be fine, but I am having really bad ssh permission problems in
> here: for example, if there is an empty, initialised git archive and it is
> pulled to over ssh, the created files have permissions only u=rwX, no more.
> Then subsequently git pulling doesn't work. Maybe you know how to solve it?
Probably your umask is doing this? When you locally create a file (e.g.
"touch foo"), does it then only have "-rwx------" as well?
> Also, in general, how can it be set up, that >1 people have a write access to
> the same repository? Only by using the same login?
Have a look at the "--shared" option of "git init". That's supposed to
create shared repositories, i.e. all users of the same group have write
access. I'm not exactly sure how to make an existing repo "shared" after
it's been created, but
$ git config core.sharedrepository 1
(which modifies .git/config) and a reasonable chown/chmod -R afterwards
should work.
Hope this helps,
Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: use git-daemon by git://IP/path?
2009-06-12 13:54 ` Dirk Süsserott
@ 2009-06-12 14:16 ` Jeff King
2009-06-12 14:41 ` Dirk Süsserott
2009-06-12 14:24 ` git shared repository & permission problems Kārlis Repsons
1 sibling, 1 reply; 6+ messages in thread
From: Jeff King @ 2009-06-12 14:16 UTC (permalink / raw
To: Dirk Süsserott; +Cc: Ka-rlis Repsons, git
On Fri, Jun 12, 2009 at 03:54:08PM +0200, Dirk Süsserott wrote:
>> Also, in general, how can it be set up, that >1 people have a write
>> access to the same repository? Only by using the same login?
>
> Have a look at the "--shared" option of "git init". That's supposed to
I have also had good experiences with POSIX ACLs for sharing
repositories:
setfacl -R -m d:u:$user:rwX -m u:$user:rwX /path/to/repo
which gets rid of dealing with group management. Of course your
filesystem has to support them. :)
-Peff
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: use git-daemon by git://IP/path?
2009-06-12 14:16 ` Jeff King
@ 2009-06-12 14:41 ` Dirk Süsserott
0 siblings, 0 replies; 6+ messages in thread
From: Dirk Süsserott @ 2009-06-12 14:41 UTC (permalink / raw
To: Jeff King; +Cc: Dirk Süsserott, Ka-rlis Repsons, git
Am 12.06.2009 16:16 schrieb Jeff King:
> On Fri, Jun 12, 2009 at 03:54:08PM +0200, Dirk Süsserott wrote:
>
>>> Also, in general, how can it be set up, that >1 people have a write
>>> access to the same repository? Only by using the same login?
>> Have a look at the "--shared" option of "git init". That's supposed to
>
> I have also had good experiences with POSIX ACLs for sharing
> repositories:
>
> setfacl -R -m d:u:$user:rwX -m u:$user:rwX /path/to/repo
>
> which gets rid of dealing with group management. Of course your
> filesystem has to support them. :)
That's the best way, of course. We use it at work to have 'release'
repositories where only a dedicated maintainer and his deputy can
push to. Our developers push to their 'public' repos and the maintainer
then pulls their changes and pushes them to 'release' -- just like Junio
does here :-)
Dirk
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: git shared repository & permission problems
2009-06-12 13:54 ` Dirk Süsserott
2009-06-12 14:16 ` Jeff King
@ 2009-06-12 14:24 ` Kārlis Repsons
1 sibling, 0 replies; 6+ messages in thread
From: Kārlis Repsons @ 2009-06-12 14:24 UTC (permalink / raw
To: git
[-- Attachment #1: Type: text/plain, Size: 1236 bytes --]
On Friday 12 June 2009 13:54:08 you wrote:
> Am 12.06.2009 14:13 schrieb Ka-rlis Repsons:
> > Things would be fine, but I am having really bad ssh permission problems
> > in here: for example, if there is an empty, initialised git archive and
> > it is pulled to over ssh, the created files have permissions only u=rwX,
> > no more. Then subsequently git pulling doesn't work. Maybe you know how
> > to solve it?
>
> Probably your umask is doing this? When you locally create a file (e.g.
> "touch foo"), does it then only have "-rwx------" as well?
No, at client its allright with umask (well, in bash, not konqueror).
Where from is sftp-server receiving its file permission bits for the new
files? Maybe some way to change it?
> > Also, in general, how can it be set up, that >1 people have a write
> > access to the same repository? Only by using the same login?
>
> Have a look at the "--shared" option of "git init". That's supposed to
> create shared repositories, i.e. all users of the same group have write
> access.
> I'm not exactly sure how to make an existing repo "shared" after
> it's been created,
Someone else knows? That would be useful...
> Hope this helps,
> Dirk
Thanks!
k.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: use git-daemon by git://IP/path?
2009-06-12 12:13 use git-daemon by git://IP/path? Kārlis Repsons
2009-06-12 13:54 ` Dirk Süsserott
@ 2009-06-12 15:48 ` Pau Garcia i Quiles
1 sibling, 0 replies; 6+ messages in thread
From: Pau Garcia i Quiles @ 2009-06-12 15:48 UTC (permalink / raw
To: Kārlis Repsons; +Cc: git
Hello,
If you are not concerned about security, just make your repository public:
http://www.elpauer.org/?p=337
On Fri, Jun 12, 2009 at 2:13 PM, Kārlis Repsons<karlis.repsons@gmail.com> wrote:
> Hello git users and writers!
>
> I am new to git, but, having read manuals and grasping the concepts of it, I
> would like to first say thanks to all those, who created it!
>
> Things would be fine, but I am having really bad ssh permission problems in
> here: for example, if there is an empty, initialised git archive and it is
> pulled to over ssh, the created files have permissions only u=rwX, no more.
> Then subsequently git pulling doesn't work. Maybe you know how to solve it?
>
> Also, in general, how can it be set up, that >1 people have a write access to
> the same repository? Only by using the same login?
>
> Kind regards,
> Kārlis
>
--
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-06-12 15:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-12 12:13 use git-daemon by git://IP/path? Kārlis Repsons
2009-06-12 13:54 ` Dirk Süsserott
2009-06-12 14:16 ` Jeff King
2009-06-12 14:41 ` Dirk Süsserott
2009-06-12 14:24 ` git shared repository & permission problems Kārlis Repsons
2009-06-12 15:48 ` use git-daemon by git://IP/path? Pau Garcia i Quiles
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).