Re: ALTER USER does not work

From: pippo(at)bellnet(dot)ca
To: pgsql-novice(at)postgresql(dot)org
Cc: "Josh Berkus" <josh(at)agliodbs(dot)com>
Subject: Re: ALTER USER does not work
Date: 2003-01-10 23:09:53
Message-ID: 5.1.0.14.2.20030110175843.00bb1450@pop51.bellnet.ca
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

At 05:42 PM 1/10/2003 -0500, you wrote:
>At 02:23 PM 1/10/2003 -0800, you wrote:
>>PJ,
>>
>> > postgresql 7.3.1 - cannot change user either from command line psql
>> > or from Webmin.
>> > I just migrated a database from 7.2 to 7.3 . On the 7.2 box, the
>> > user had a password and the website functioned fine. On the 7.3 box,
>> > the wesite does not log on properly and I suspect it is because the
>> > database is not being correctly accessed. I am unable to change the
>> > username on the 7.3 box to have a password. I seem to be able to
>> > delete the user but not set it with a password or with NOCREATEDB or
>> > NOCREATEUSER.
>> > Is there a setting in postgresql.conf or pg_hba.conf that need to be
>> > changed? Do the access priviledges need to be change from trust to
>> > password? (The machine is only on the local LAN, so security is not
>> > an issue for now.
>> > I'm a little lost.
>> > Thanks for any help.
>>
>>can you post the exact text of your ALTER USER command, and the error
>>message that you get?
>
>su pgsql
>psql database
>ALTER USER username WITH PASSWORD password NOCREATEDB NOCREATEUSER
>
>There is no error message.
>I do restart posgresql and then check on Webmin. It always shows the same
>configuration for the username: Requires password? No; Can create
>databases? No; Can create users? No; Valid until Forever.
>I can delete the username and when I create a new one with same name but
>with new password, the result is the same. :((
CORRECTION!!! (I forgot to finish the command with the semicolon ";" and I
did not enter the password with single quotes)
However, I just tried again:

# su pgsql
$ psql template1
template1=# ALTER USER username WITH PASSWORD 'password' NOCREATEDB
NOCREATEUSER;
ALTER USER
template1=#

Webmin, still does no register the change.

PJ

In response to

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Josh Berkus 2003-01-11 00:03:42 Re: ALTER USER does not work
Previous Message pippo 2003-01-10 22:42:00 Re: ALTER USER does not work