Change permissions on repository files

Hey, I’m stuck with the same problem, as I want to sync repositories stored by rest-server to a remote location as a different user.

Running as a systemd service, I tried to add UMask=027 to the service file (see systemd example), but this did not change anything, files are still created with file access attributes 600 (and 700 for folders). Has anyone checked this or can verify that it does/does not work?

Tested it with rest-server 0.10.0 on a Debian 10.

Edit: For now, I’m stuck with doing chmod before each sync, as also described here:

  • find . -type d -exec chmod g+rx {} \;
  • find . -type f -exec chmod g+r {} \;