From: Amn Ojee Uw <amnojeeuw@gmail.com>
To: pgsql-general@lists.postgresql.org
Cc: haramrae@gmail.com
Subject: Re: Nu-B here
Date: Tue, 25 Jul 2023 18:10:24 -0400
Message-ID: <32575904-99e1-bd87-4bda-c55fb7eea9b6@gmail.com> (raw)
In-Reply-To: <a8b3fac8-d6f9-fc04-4f2b-68a69cb66f55@aklaver.com>
References: <28bc9ae9-869d-a2ee-3ebb-b4bb7bdcbb14@gmail.com>
<975DAA29-FD15-4B1D-B19C-297725A59D74@gmail.com>
<a8b3fac8-d6f9-fc04-4f2b-68a69cb66f55@aklaver.com>
Please note the following :
/psql (12.15 (Debian 12.15-1.pgdg120+1
/Thanks in advance
//
On 7/20/23 10:41 a.m., Adrian Klaver wrote:
> On 7/19/23 23:32, Alban Hertroys wrote:
>>
>>> On 20 Jul 2023, at 02:36, Amn Ojee Uw <amnojeeuw@gmail.com> wrote:
>>>
>>> After this command 'sudo -u postgres psql'
>>> I get this message :
>>> could not change directory to "/home/my_account": Permission denied
>>
>> What’s the reason that you’re using the OS user postgres?
>
> Because the Debian/Ubuntu packaging sets up pg_hba.conf to use peer
> auth for local connections and the only database user created is
> postgres.
>
> See:
>
> https://ubuntu.com/server/docs/databases-postgresql
>
> for more information.
>
>>
>> If you’re simply trying to connect to the database named postgres as
>> database user postgres, you can instead use the command 'psql -U
>> postgres postgres’.
>
>
>>
>> Alban Hertroys
>> --
>> If you can't see the forest for the trees,
>> cut the trees and you'll find there is no forest.
>>
>>
>>
>
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: amnojeeuw@gmail.com, haramrae@gmail.com
Subject: Re: Nu-B here
In-Reply-To: <32575904-99e1-bd87-4bda-c55fb7eea9b6@gmail.com>
References: <28bc9ae9-869d-a2ee-3ebb-b4bb7bdcbb14@gmail.com> <975DAA29-FD15-4B1D-B19C-297725A59D74@gmail.com> <a8b3fac8-d6f9-fc04-4f2b-68a69cb66f55@aklaver.com> <32575904-99e1-bd87-4bda-c55fb7eea9b6@gmail.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