pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Euler Taveira <euler@eulerto.com>
To: 370619197@qq.com
To: pgsql-bugs@lists.postgresql.org
Subject:  Re: BUG #16915: use psql have error "could not change directory to "/root": Permission denied"
Date: Thu, 04 Mar 2021 11:18:44 -0300
Message-ID: <527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.com> (raw)
In-Reply-To: <16915-44cc93306d08db16@postgresql.org>
References: <16915-44cc93306d08db16@postgresql.org>

On Thu, Mar 4, 2021, at 8:21 AM, PG Bug reporting form wrote:
> Just so that you have the correct expectation, the issue you have has
> nothing to do with this ansible repository. I am looking into this as I find
> it interesting. It is an issue that came with Postgres 13, as it does not
> seem to be present in Postgres 12.
I didn't run your commands but I noticed that you are not using equivalent         
commands. Your su command specifies '-' that means "Start the shell as a login 
shell with an environment similar to a real login" and your sudo command does  
not specify option -i that provides an equivalent feature. Could you test with 'sudo  
-i -u postgres' and show us the result?


--
Euler Taveira
EDB   https://www.enterprisedb.com/

view thread (3+ messages)  latest in thread

Message-ID: <527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.com>
Permalink:  ../527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.com/
Also on:    postgresql.org/message-id/527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.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-bugs@postgresql.org
  Cc: euler@eulerto.com, 370619197@qq.com
  Subject: Re: BUG #16915: use psql have error "could not change directory to "/root": Permission denied"
  In-Reply-To: <527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.com>
  References: <16915-44cc93306d08db16@postgresql.org> <527bdfe5-d206-4400-8f68-e4c4c93738f2@www.fastmail.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