gitea creates world readable file permissions on repos

Created on 11 Jun 2018  ·  3Comments  ·  Source: go-gitea/gitea

Hi,

Is there any reason why gitea creates too broad file permissions for repositories on the system (644)?

OS: OpenBSD
Gitea version: 1.3.2

thanks.

kinquestion

Most helpful comment

I just chmod repositories root directory to 700 (assuming owner and group are git:git and gitea is run under git:git too). That makes directory inaccessible by anyone else (except git and root of course).

All 3 comments

I'm facing the same issue on Arch Linux with gitea 1.4.2

I just chmod repositories root directory to 700 (assuming owner and group are git:git and gitea is run under git:git too). That makes directory inaccessible by anyone else (except git and root of course).

Setting repositories root directory to correct rights to not have repositories accessible with all users as @SagePtr mentioned

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tuxfanou picture tuxfanou  ·  3Comments

BRMateus2 picture BRMateus2  ·  3Comments

jakimfett picture jakimfett  ·  3Comments

lunny picture lunny  ·  3Comments

jorise7 picture jorise7  ·  3Comments