From: | Julien Rouhaud <julien(dot)rouhaud(at)dalibo(dot)com> |
---|---|
To: | Davide Toller <toller(dot)davide(at)gmail(dot)com>, pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Lost superuser login grant |
Date: | 2016-10-20 12:28:44 |
Message-ID: | 2c72583f-6458-a334-496b-3f3ec368f8d5@dalibo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
On 20/10/2016 14:25, Davide Toller wrote:
> Hello to all,
> I made a mistake by revoking the grant login to my superuser "postgres".
>
> Now, when I try to access my database I get the following error:
>
> psql: FATAL: role "postgres" is not permitted to log in
>
> I'm working with Postgres 9.3 on Red Hat 6.
> There is a way to give back the login grant to user "postgres"?
>
I think the only way is to stop postgres, and launch it in single user mode:
postgres --single -D /path/to/pgdata
Then you should be able to grant login privilege to your superuser.
--
Julien Rouhaud
http://dalibo.com - http://dalibo.org
From | Date | Subject | |
---|---|---|---|
Next Message | Deepak Goel | 2016-10-21 07:54:19 | Postgres and Ambari Error |
Previous Message | Davide Toller | 2016-10-20 12:25:04 | Lost superuser login grant |