/var/opt/gitlab/git-data/repositories permissions

I have moved my repositories to a separate physical disk and mounted them in fstab. The system is working fine.

The problem I have is the snmp user can’t access the mount point, so I can’t monitor space used. Looking at the directory:

root@gitlab:/var/opt/gitlab/git-data# ls -l
total 4
drwxrws— 12 git git 4096 Feb 9 07:41 repositories

Are those permissions correct? I think they are set by the updater, but I’m not sure.

When the snmp user tries to access the system, it is denied which I guess makes sense.

root@gitlab:/var/opt/gitlab/git-data# sudo -u snmp df -h /var/opt/gitlab/git-data/repositories/
df: ‘/var/opt/gitlab/git-data/repositories/’: Permission denied

I’ve tried adding snmp to the git group, but that doesn’t help.

Anyone have any ideas how I can fix this?