Skip to content

group rights of several directories

From https://redmine.postgresql.org/issues/7898:

Dear all,

I've noticed that the postgres group isn't allowed to write any files in the following directories.

  • /var/lib/pgbackrest
  • /var/spool/pgbackrest
  • /var/log/pgbackrest

These directories have the following access rights.

drwxr-x--- 2 postgres postgres 4.0K Sep 26 21:30 /var/lib/pgbackrest
drwxr-x--- 2 postgres postgres 4.0K Sep 26 21:30 /var/spool/pgbackrest
drwxr-x--- 2 postgres postgres 4.0K Sep 26 21:30 /var/log/pgbackrest

Would it be an option to allow the group postgres write access, so database users that are member of the postgres group can run pgbackrest?