Re: alter user to change user's password returns pg_shadow: Permission denied.

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: alter user to change user's password returns pg_shadow: Permission denied.
Дата
Msg-id 14070.996464061@sss.pgh.pa.us
обсуждение исходный текст
Ответ на alter user to change user's password returns pg_shadow: Permission denied.  (Wayne Johnson <wdtj@yahoo.com>)
Список pgsql-general
Wayne Johnson <wdtj@yahoo.com> writes:
> According to the Postgresql manual, a user can alter their own
> password.  When I try:
> alter user "test" with password "zzzz";
> Where test is the user id signed in with, I get the error:
> ERROR:  pg_shadow: Permission denied.

Works for me.  What version are you running?

BTW, any reasonably recent version of PG will object to that style of
quoting --- the password in ALTER USER is a string literal, not an
identifier, so it needs single quotes not double quotes.

            regards, tom lane

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

Предыдущее
От: Wayne Johnson
Дата:
Сообщение: alter user to change user's password returns pg_shadow: Permission denied.
Следующее
От: Fernando Lozano
Дата:
Сообщение: Re: Visual Basic and PostgreSQL ODBC