Re: how do i change the password for 'postgres' user

From: Gopi G <gopiputty(at)gmail(dot)com>
To: Francis Santiago <santiagocfc(at)gmail(dot)com>
Cc: Pgsql-admin <pgsql-admin(at)postgresql(dot)org>
Subject: Re: how do i change the password for 'postgres' user
Date: 2018-02-25 05:19:08
Message-ID: CAC9HVwkwBPZiuJcM1KjQahH=cN8Q9xexRhrsvrZrBOvWcKnX=A@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

Hi Francis

I did login like postgres.

Here is from my command:

~$ sudo -u postgres psql postgres

could not change directory to "/home/ec2-user"

Password:

psql (9.2.24)

Type "help" for help.

postgres=>

On Sat, Feb 24, 2018 at 6:48 AM, Francis Santiago <santiagocfc(at)gmail(dot)com>
wrote:

> you entered as the Postgres user, it seems that not because he says :
> *postgres=>*
>
> When you enter with the postgres user, it is: *postgres=# *
>
> 2018-02-23 20:26 GMT-03:00 Gopi G <gopiputty(at)gmail(dot)com>:
>
>> I have postgres 9.2 running in AWS EC2 (aws linux) instance.
>> I followed documentation and tried to do
>>
>> postgres=> ALTER USER Postgres WITH PASSWORD 'password';
>>
>> ERROR: must be superuser to alter replication users
>>
>>
>> surprisingly I am not finding any way to solve this problem.
>> and how do I login using 'postgres' linux os user that is created when I
>> installed postgres 9.2?
>>
>> gopi
>>
>
>
>
>
>

In response to

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message David G. Johnston 2018-02-25 05:34:24 Re: how do i change the password for 'postgres' user
Previous Message Francis Santiago 2018-02-24 14:48:10 Re: how do i change the password for 'postgres' user