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

lunny picture lunny  路  3Comments

jonasfranz picture jonasfranz  路  3Comments

mirhec picture mirhec  路  3Comments

wyattoday picture wyattoday  路  3Comments

tuxfanou picture tuxfanou  路  3Comments