Re: In a fix: lost superuser

Поиск
Список
Период
Сортировка
От Holger Klawitter
Тема Re: In a fix: lost superuser
Дата
Msg-id 3AFF85DE.877FEA79@klawitter.de
обсуждение исходный текст
Ответ на In a fix: lost superuser  (Ken <mailinglists@creason.com>)
Список pgsql-general
Ken wrote:
>
> Is there any way to reset the superuser password
> if it has been lost? I thought it was set properly
> but it is now among the ethers, and none of the other
> accounts have superuser privileges. I've tried replacing
> pg_shadow with another in hopes of resetting the darn
> thing, but alas. Do I have to re-install postgres?
> Is there any way for the root user to reset the password?

You can modify pg_hba.conf in order to "trust" the PG_USER
setting of the client. Then you can modify the internal system
tables in order to reset the password.

With kind regards / Mit freundlichem Gruß
    Holger Klawitter
--
Holger Klawitter
holger@klawitter.de                             http://www.klawitter.de



В списке pgsql-general по дате отправления:

Предыдущее
От: jdassen@cistron.nl (J.H.M. Dassen (Ray))
Дата:
Сообщение: Re: In a fix: lost superuser
Следующее
От: Alexander Lohse
Дата:
Сообщение: Speeding up Query