| From: | Bernt Drange <badrange(at)gmail(dot)com> |
|---|---|
| To: | pgsql-admin(at)postgresql(dot)org |
| Subject: | Re: Regaining superuser access |
| Date: | 2008-09-18 16:01:27 |
| Message-ID: | aaad999b-500f-4c13-a738-0a35bd443b23@m73g2000hsh.googlegroups.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-admin pgsql-hackers |
On Sep 18, 2:35 pm, glynast(dot)(dot)(dot)(at)yahoo(dot)co(dot)uk (Glyn Astill) wrote:
> > The server only has one superuser, and for some reason he
> > decided to
> > remove the logon privilege on this user in PgAdmin III. So
> > now he has
> > lost superuser access to the database server.
>
> > Is there some way to override this setting? Or some way to
> > trick
> > PostgreSQL into creating a new superuser without superuser
> > access?
>
> Start it up in single user mode?
>
> http://www.postgresql.org/docs/8.3/static/app-postgres.html
Thanks a bunch!
After a lot of fiddling with being able to enter single user mode on a
windows machine (I had to figure out how to run the command line as
the correct user, then for some reason -D didn't work, but SET
PGDATA=xxx worked), I finally managed to fix my problem.
You saved my user's day (of course *I* would never do something that
stupid)!
Bernt
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Alvaro Herrera | 2008-09-18 17:03:26 | Re: Regaining superuser access |
| Previous Message | Alvaro Herrera | 2008-09-18 15:50:18 | Re: CVS for postgresql |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2008-09-18 16:06:19 | Re: New FSM patch |
| Previous Message | Andrew Sullivan | 2008-09-18 15:53:20 | Re: Do we really need a 7.4.22 release now? |