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

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Wayne Johnson <wdtj(at)yahoo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: alter user to change user's password returns pg_shadow: Permission denied.
Date: 2001-07-30 03:34:21
Message-ID: 14070.996464061@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Wayne Johnson <wdtj(at)yahoo(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Fernando Lozano 2001-07-30 03:39:40 Re: Visual Basic and PostgreSQL ODBC
Previous Message Wayne Johnson 2001-07-30 02:22:12 alter user to change user's password returns pg_shadow: Permission denied.