Re: How to remove superuser

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: How to remove superuser
Дата
Msg-id 4B9B0A25.9030003@hogranch.com
обсуждение исходный текст
Ответ на Re: How to remove superuser  (Bruce Momjian <bruce@momjian.us>)
Список pgsql-general
Bruce Momjian wrote:
> Also, you can do:
>     NET USER postgres /delete
>
> as an administrator.
>


or NET USER postgres *

and then enter a new password.   I dislike deleting the account in case
there are any files left behind by the old postgres such as the old
pgdata directory, a new one is a different account.

but on vista and win7, with the UAC privilege masking thing, you have to
be runnign CMD as Administrator before you can do this, as the regular
cmd prompt is unprivileged and won't invoke the UAC elevation stuff.
you can right-click Run As Admin the shortcut to CMD to get a privileged
command prompt.



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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: How to remove superuser
Следующее
От: Pavel Stehule
Дата:
Сообщение: Re: Function with DEFAULT arguments