# Remote git server dubious ownership

2 messages from 2024-10-08 to 2024-10-08. Participants: Alessio De Marchi (GMail), Michal Suchánek.
Thread: https://gitlist.dev/t/62283

## Alessio De Marchi (GMail), 2024-10-08 15:14

Subject: Remote git server dubious ownership
Message-ID: <447ddc34-ab3a-4607-908f-64b9cc0268fd@gmail.com>
URL: https://gitlist.dev/e/447ddc34-ab3a-4607-908f-64b9cc0268fd%40gmail.com

```
Hello

I'm using git v2.46.2 on windows, and I have a server linux (git 
v2.45.2) where me and other developer push our repositories.

If i push my changes on a repository that is owned by another user the 
server git respond:

fatal: detected dubious ownership in repository...


So I can push changes only in repository owned by myself.

It is possible to share a repository to more that one user? (I remember 
that it was possible untill some years ago)


thanks

Alessio De Marchi



```

## Michal Suchánek, 2024-10-08 18:27

Subject: Re: Remote git server dubious ownership
Message-ID: <ZwV5iiX7ssf4yk53@kitsune.suse.cz>
URL: https://gitlist.dev/e/ZwV5iiX7ssf4yk53%40kitsune.suse.cz
In-Reply-To: <447ddc34-ab3a-4607-908f-64b9cc0268fd@gmail.com>

```
Hello,

On Tue, Oct 08, 2024 at 05:14:49PM +0200, Alessio De Marchi (GMail) wrote:
> Hello
> 
> I'm using git v2.46.2 on windows, and I have a server linux (git v2.45.2)
> where me and other developer push our repositories.
> 
> If i push my changes on a repository that is owned by another user the
> server git respond:
> 
> fatal: detected dubious ownership in repository...
> 
> 
> So I can push changes only in repository owned by myself.
> 
> It is possible to share a repository to more that one user? (I remember that
> it was possible untill some years ago)

look for the git safe.directory option. That makes it possible to
specify which repositories are shared.

HTH

Michal

```
