Hi ! Thanks for the advice
I tried setting the setgid bits - this seems to work if I log in as the user and just create a file using touch:
This is the repository permissions:
[root@brix ~]# ls -hal /mnt/data/backup-targets
drwxr-sr-x. 7 fetcher data-read 4.0K Feb 25 21:14 .
drwxr-s---. 2 fetcher data-read 36K Apr 24 09:03 snapshots
If I create a file in
snapshots manually it seems having the correct group and read permissions:
[fetcher@brix ~]$ touch /mnt/data/backup-targets/snapshots/test
[fetcher@brix ~]$ ls -hal /mnt/data/backup-targets/snapshots/test
-rw-r--r--. 1 fetcher data-read 0 Apr 24 11:24 /mnt/data/backup-targets/snapshots/test
While actual snapshot created using restic over sftp to that host, same user:
-rw-------. 1 fetcher data-read 285 Apr 23 16:03 /mnt/data/backup-targets/snapshots/8f2ddc1cd79dbf8dd84b5b89b0cfe2596c58165d4ca84705a8c41cf290edf772
The group is being set correctly, but the group does not seem to have permission to read the file.
Is it something that I set there incorrect or is restic electing to write the file with minimal permissions ?