Re: Commands linked to pg_wrapper not working with non-root users - Mailing list pgsql-general

From Jonathan Leroy - Inikup
Subject Re: Commands linked to pg_wrapper not working with non-root users
Date
Msg-id CAC88fzEpaHFdQK0qcZr=WnWY73F6jxT3JwTxOK7nrM6Ci+vmPQ@mail.gmail.com
Whole thread Raw
In response to Re: Commands linked to pg_wrapper not working with non-root users  (Jonathan Leroy - Inikup <jonathan@inikup.com>)
Responses Re: Commands linked to pg_wrapper not working with non-root users
List pgsql-general
2018-04-12 1:49 GMT+02:00 Jonathan Leroy - Inikup <jonathan@inikup.com>:
> Maybe I will try to "dissect" pg_wrapper to find where the error
> occurs, but the script is quite complex...

OK, I've found the issue : pg_wrapper is trying to get the value of
the "data_directory" setting by reading the postgresql.conf file.
However, my user can't access the postgresql.conf file.

So I've bootstrapped a fresh Debian 8 VM with just postgresql-9.6, and
compared files permissions between that VM and my production servers.
All my production postgresql.conf files have a chmod 640 vs 644 on my new VM.

After digging, I've found that the SaltStack recipe who configure all
my servers force the file chmod to 640...
I've fixed it: everything works now. :)

Thank you all for your help!

-- 
Jonathan Leroy


pgsql-general by date:

Previous
From: Adrian Klaver
Date:
Subject: Re: Commands linked to pg_wrapper not working with non-root users
Next
From: Adrian Klaver
Date:
Subject: Re: Commands linked to pg_wrapper not working with non-root users