Re: git server changes - how to allow https AND ssh now that /srv/git/xxx.git must be owned by http?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Op zo 16 jun. 2024 10:42 schreef David C. Rankin <drankinatty@xxxxxxxxx>:
[···]
   On the server the repositories under /srv/git were owned david:david (me).
However, after the git change, git refused to serve over https unless the
directories under /srv/git were owned by http.

   Fine, change made - but now repos cloned read/write over ssh fail because
the directory under /srv/git is no longer owned by me.

   How do you make git repositories hosted on my local server allow clone/pull
over https AND allow me to still close read/write over ssh?

[...]
unless /srv/git/xxx.git is http:http, https fails

unless /srv/git/xxx.git is david:http, ssh fails


Have you tried using http:david instead?
And make sure the files are group-writable.

I haven't tested this, but this seems to answer all the mentioned constraints.


Mvg, Guus Snijders

[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux