git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git shared repository & permission problems

From
KRKārlis Repsons <karlis.repsons@gmail.com>
Date
Jun 12, 2009, 14:24 UTC
Message-ID
<200906121424.28577.Karlis.Repsons@gmail.com>
In-Reply-To
<4A325E00.6050504@dirk.my1.cc>
On Friday 12 June 2009 13:54:08 you wrote:
Show 9 quoted lines
> 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?

Show 6 quoted lines
> > 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.
Previous: Dirk SüsserottNext: Pau Garcia i Quiles
Message 5 of 6 in “use git-daemon by git://IP/path?”
  1. Kārlis RepsonsJun 12, 2009
  2. Dirk SüsserottJun 12, 2009
  3. Jeff KingJun 12, 2009
  4. Dirk SüsserottJun 12, 2009
  5. Kārlis RepsonsJun 12, 2009
  6. Pau Garcia i QuilesJun 12, 2009

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.