pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jonathan Leroy - Inikup <jonathan@inikup.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 18:19:57 -0400
Message-ID: <32315.1523485197@sss.pgh.pa.us> (raw)
In-Reply-To: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com>
References: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com>

Jonathan Leroy - Inikup <jonathan@inikup.com> writes:
> Here's my issue : when I'm logged as an user which is not root or
> postgresql, I can't use any of the commands linked to pg_wrapper:

> user1@server1:~ $ /usr/bin/psql --version
> Error: Invalid data directory

There's no error message with exactly that spelling in PG proper,
so it must be coming out of the wrapper script.  At a guess, the
wrapper script thinks it should be able to examine the data directory,
but it can't because of restrictive file permissions.  Why your
setup is triggering that when it works for other people, I can't say.

			regards, tom lane




view thread (12+ messages)  latest in thread

Message-ID: <32315.1523485197@sss.pgh.pa.us>
Permalink:  ../32315.1523485197@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/32315.1523485197@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, jonathan@inikup.com
  Subject: Re: Commands linked to pg_wrapper not working with non-root users
  In-Reply-To: <32315.1523485197@sss.pgh.pa.us>
  References: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com> <32315.1523485197@sss.pgh.pa.us>

* 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