From: Tom Lane <tgl@sss.pgh.pa.us>
To: Amn Ojee Uw <amnojeeuw@gmail.com>
Cc: pgsql-general@lists.postgresql.org
Subject: Re: Nu-B here
Date: Wed, 19 Jul 2023 20:54:18 -0400
Message-ID: <465497.1689814458@sss.pgh.pa.us> (raw)
In-Reply-To: <28bc9ae9-869d-a2ee-3ebb-b4bb7bdcbb14@gmail.com>
References: <28bc9ae9-869d-a2ee-3ebb-b4bb7bdcbb14@gmail.com>
Amn Ojee Uw <amnojeeuw@gmail.com> writes:
> After this command 'sudo -u postgres psql'
> I get this message :
> *could not change directory to "/home/my_account": Permission denied**
> **psql (12.15 (Debian 12.15-1.pgdg120+1))**
> **Type "help" for help.*
This is normal if you launch psql via "sudo -u postgres" in a directory
that the postgres user doesn't have permissions to read/chdir to.
psql will still start, but its working directory will not be what
you'd expect, so commands that involve local filesystem access might
misbehave.
We have a fix for this error report in the upcoming v16, but psql commands
that involve local filesystem access will still not act very nicely if
psql can't read your directory.
regards, tom lane
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, amnojeeuw@gmail.com
Subject: Re: Nu-B here
In-Reply-To: <465497.1689814458@sss.pgh.pa.us>
References: <28bc9ae9-869d-a2ee-3ebb-b4bb7bdcbb14@gmail.com> <465497.1689814458@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