Add group-accessible-repos option (#308)
Some checks failed
test / Go ${{ matrix.go }} (1.22.x) (push) Has been cancelled
test / Go ${{ matrix.go }} (1.23.x) (push) Has been cancelled
test / lint (push) Has been cancelled
test / Analyze results (push) Has been cancelled

* Add group-accessible-repos option

The group-accessible-repos option will let filesystem group id
be able to access files and dir within the restic repo
Default stick with old behaviour to be owner restricted
While here make dirMode and fileMode within Options struct
private

---------

Co-authored-by: Michael Eischer <michael.eischer@fau.de>
This commit is contained in:
Massimo Lusetti
2025-02-17 22:17:54 +01:00
committed by GitHub
parent 10a06dcbf1
commit f053e33486
4 changed files with 71 additions and 37 deletions

View File

@@ -0,0 +1,9 @@
Enhancement: Support group accessible repositories
Rest-server now supports making repositories accessible to the filesystem group
by setting the `--group-accessible-repos` option. Note that permissions of
existing files are not modified. Use `chmod -R g+rwX /path/to/repo` to make
the repository group-accessible.
https://github.com/restic/rest-server/issues/189
https://github.com/restic/rest-server/pull/308