pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Jonathan Leroy - Inikup <jonathan@inikup.com>
To: 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 16:32:39 -0700
Message-ID: <55bc694a-ba69-7377-e39d-867a8f4c507c@aklaver.com> (raw)
In-Reply-To: <CAC88fzFbhOqwPghmVKHxx9h_=UnzQqVmD95jwaiKfFcZVi8tmw@mail.gmail.com>
References: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com>
	<878t9t753a.fsf@gmail.com>
	<CAC88fzFbhOqwPghmVKHxx9h_=UnzQqVmD95jwaiKfFcZVi8tmw@mail.gmail.com>

On 04/11/2018 04:20 PM, Jonathan Leroy - Inikup wrote:
> 2018-04-12 0:26 GMT+02:00 Tim Cross <theophilusx@gmail.com>:
>> Check your settings in /etc/postgresql-common/user_clusters. The wrapper
>> script uses that file to determine what databases to connect to or what
>> is the user default database cluster. It can also be overridden with a
>> local ~/.postgresqlrc, so check there are no old settings there as well.
> 
> Thank you Tim.
> 
> The file /etc/postgresql-common/user_clusters is empty on all servers
> (it only contains comments). None of my users have a ~/.postgresqlrc
> file.
> 

What are the permissions on /usr/bin/psql?

On my Ubuntu 16.04 instance I have:

lrwxrwxrwx 1 root root 37 Feb  8 04:55 /usr/bin/psql -> 
../share/postgresql-common/pg_wrapper*


-- 
Adrian Klaver
adrian.klaver@aklaver.com




view thread (12+ messages)  latest in thread

Message-ID: <55bc694a-ba69-7377-e39d-867a8f4c507c@aklaver.com>
Permalink:  ../55bc694a-ba69-7377-e39d-867a8f4c507c@aklaver.com/
Also on:    postgresql.org/message-id/55bc694a-ba69-7377-e39d-867a8f4c507c@aklaver.com

 · 

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: 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: <55bc694a-ba69-7377-e39d-867a8f4c507c@aklaver.com>
  References: <CAC88fzE-ajOudW_Gath9N5W4ofr_OXWUCVc85mSu76N==738sw@mail.gmail.com> <878t9t753a.fsf@gmail.com> <CAC88fzFbhOqwPghmVKHxx9h_=UnzQqVmD95jwaiKfFcZVi8tmw@mail.gmail.com> <55bc694a-ba69-7377-e39d-867a8f4c507c@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