From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jonathan Leroy - Inikup <jonathan@inikup.com>
Cc: Tim Cross <theophilusx@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Commands linked to pg_wrapper not working with non-root users
Date: Wed, 11 Apr 2018 17:41:45 -0700
Message-ID: <54116237-20a6-d7ad-1d54-5076f38c593e@aklaver.com> (raw)
In-Reply-To: <CAC88fzEpaHFdQK0qcZr=WnWY73F6jxT3JwTxOK7nrM6Ci+vmPQ@mail.gmail.com>
References: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com>
<878t9t753a.fsf@gmail.com>
<CAC88fzFbhOqwPghmVKHxx9h_=UnzQqVmD95jwaiKfFcZVi8tmw@mail.gmail.com>
<6968c432-c9c7-6241-55da-8b078e6e56ed@aklaver.com>
<CAC88fzEsdHuQa2vMOJ+=+FANyy5LX9poCH264ntzDSp831Q6VQ@mail.gmail.com>
<CAC88fzEpaHFdQK0qcZr=WnWY73F6jxT3JwTxOK7nrM6Ci+vmPQ@mail.gmail.com>
On 04/11/2018 05:36 PM, Jonathan Leroy - Inikup wrote:
> 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. :)
Great. Thanks for the follow up.
>
> Thank you all for your help!
>
--
Adrian Klaver
adrian.klaver@aklaver.com
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-general@postgresql.org
Cc: adrian.klaver@aklaver.com, jonathan@inikup.com, theophilusx@gmail.com
Subject: Re: Commands linked to pg_wrapper not working with non-root users
In-Reply-To: <54116237-20a6-d7ad-1d54-5076f38c593e@aklaver.com>
References: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com> <878t9t753a.fsf@gmail.com> <CAC88fzFbhOqwPghmVKHxx9h_=UnzQqVmD95jwaiKfFcZVi8tmw@mail.gmail.com> <6968c432-c9c7-6241-55da-8b078e6e56ed@aklaver.com> <CAC88fzEsdHuQa2vMOJ+=+FANyy5LX9poCH264ntzDSp831Q6VQ@mail.gmail.com> <CAC88fzEpaHFdQK0qcZr=WnWY73F6jxT3JwTxOK7nrM6Ci+vmPQ@mail.gmail.com> <54116237-20a6-d7ad-1d54-5076f38c593e@aklaver.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox