From: | "Oliver Elphick" <olly(at)lfix(dot)co(dot)uk> |
---|---|
To: | Lincoln Yeoh <lylyeoh(at)mecomb(dot)com> |
Cc: | pgsql-general(at)postgreSQL(dot)org |
Subject: | Re: [GENERAL] How do I activate and change the postgres user's password? |
Date: | 1999-10-13 09:29:19 |
Message-ID: | 199910130929.KAA18704@linda.lfix.co.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-hackers |
Lincoln Yeoh wrote:
>Right now any user on the local machine can log on as postgres to the
>template1 database. I don't like that, so I wish to turn on password
>checking.
>
>OK so I edit pg_hba.conf and put:
>
>local all password
>host all 127.0.0.1 255.255.255.255 password
>
>Then I have problems logging in as ANY user. Couldn't figure out what the
>default password for the postgres user was. Only after some messing around
>I found that I could log on as the postgres user with the password \N. Not
>obvious, at least to me.
>
>I only guessed it after looking at the pg_pwd file and noticing a \N there.
>Is this where the passwords are stored? By the way should they be stored in
>the clear and in a 666 permissions file? How about hashing them with some
>salt?
The PGDATA directory should have permission rwx------, so that no one can
descend into it to look at pg_pwd; therefore the file's own permissions are
unimportant.
>Now the next problem is: How do I change the postgres user password?
ALTER USER will change passwords held in pg_shadow, including that of the
postgres user, but will not, I think, change those set by pg_passwd.
--
Vote against SPAM: http://www.politik-digital.de/spam/
========================================
Oliver Elphick Oliver(dot)Elphick(at)lfix(dot)co(dot)uk
Isle of Wight http://www.lfix.co.uk/oliver
PGP key from public servers; key ID 32B8FAA1
========================================
"And he shall judge among the nations, and shall rebuke
many people; and they shall beat their swords into
plowshares, and their spears into pruninghooks; nation
shall not lift up sword against nation, neither shall
they learn war any more." Isaiah 2:4
From | Date | Subject | |
---|---|---|---|
Next Message | Zakkr | 1999-10-13 10:06:39 | Re: [GENERAL] questing using array |
Previous Message | Mark Jewiss | 1999-10-13 07:59:26 | Re: [GENERAL] stored procedure revisited |
From | Date | Subject | |
---|---|---|---|
Next Message | Andy Duncan | 1999-10-13 09:37:37 | Re: [HACKERS] Outline for PostgreSQL book |
Previous Message | Peter Eisentraut | 1999-10-13 08:47:08 | Scripts again |