From: | "Richard Huxton" <dev(at)archonet(dot)com> |
---|---|
To: | "pgsql-general" <pgsql-general(at)postgreSQL(dot)org> |
Cc: | "Anthony Metzidis" <metzidis(at)mednet(dot)ucla(dot)edu> |
Subject: | |
Date: | 2001-03-01 20:25:36 |
Message-ID: | 006001c0a28d$c8492860$1001a8c0@archonet.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Sorry about the lack of quoting, but please don't post HTML mail if
possible. Comments below
"Anthony Metzidis" <metzidis(at)mednet(dot)ucla(dot)edu> wrote in message
news:97m43u$2ec0$1(at)news(dot)tht(dot)net(dot)(dot)(dot)
Hi,
When I 'CREATE USER testuser WITH PASSWORD 'mypassword';
I see an entry in PG_PWD with the password 'mypassword' in plaintext.
--RH--
The pg_pwd file should be owned by user postgres and have a mode of 0600 so
only readable by postgres. Only root or postgres can read this file.
------
In my pg_hba.conf I have all hosts using 'password' authentication with no
file argument. Is there any way to keep postgres from saving the passwords
in plain text? This seems to be a huge security hole. I thought that
passwords were to be saved in PG_SHADOW. What is PG_SHADOW for anyway?
--RH--
If you are talking about the pg_shadow table, the permissions on it should
only let user postgres access it, not common users.
Since you don't say otherwise I assume you're using default authentication
which sends passwords over the wire in cleartext - if you're worrying, I'd
worry about that.
If someone has compromised the postgres account on your database server,
they've got access to all your databases anyway.
For more details read the section on client authentication in the
administrator's manual. Loads of details there.
- Richard Huxton
From | Date | Subject | |
---|---|---|---|
Next Message | Richard Huxton | 2001-03-01 21:10:40 | Re: serial properties |
Previous Message | Martin A. Marques | 2001-03-01 20:08:32 | user/group creation privileges |