Re: How to read cleartext user password from pgsql database - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: How to read cleartext user password from pgsql database
Date
Msg-id 20060714121322.GC551@svana.org
Whole thread Raw
In response to How to read cleartext user password from pgsql database  (Eugene Prokopiev <prokopiev@stc.donpac.ru>)
Responses Re: How to read cleartext user password from pgsql database  (Berend Tober <btober@seaworthysys.com>)
List pgsql-general
On Fri, Jul 14, 2006 at 03:21:01PM +0400, Eugene Prokopiev wrote:
> Hi,
>
> Is it possible to read cleartext user password from pgsql database? In
> this link
> http://www.postgresql.org/docs/8.1/interactive/view-pg-user.html
> explained that password always reads as ********. But I need to use
> pgsql login/password as authentication info for another service.

You can't get back the cleartext password, it's hashed.

To see the hashed password you need to bypass the view, see pg_shadow.

The docs should say something about how the hash is calcualted.

Hope this helps,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

Attachment

pgsql-general by date:

Previous
From: Alexander Bluem
Date:
Subject: table replication, without master-slave setup
Next
From: Berend Tober
Date:
Subject: Re: How to read cleartext user password from pgsql database