Step 1
stat -c "%G" .
How to find out via a Linux command line which group owns a folder?
Step 2
sudo usermod -aG <the group from the step 1> postgres
In my case:
sudo usermod -aG dfediuk postgres
stat -c "%G" .
How to find out via a Linux command line which group owns a folder?
sudo usermod -aG <the group from the step 1> postgres
In my case:
sudo usermod -aG dfediuk postgres