Re: How to read cleartext user password from pgsql database

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Eugene Prokopiev <prokopiev(at)stc(dot)donpac(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: How to read cleartext user password from pgsql database
Date: 2006-07-14 12:13:22
Message-ID: 20060714121322.GC551@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)svana(dot)org> http://svana.org/kleptog/
> From each according to his ability. To each according to his ability to litigate.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Berend Tober 2006-07-14 12:27:59 Re: How to read cleartext user password from pgsql database
Previous Message Alexander Bluem 2006-07-14 11:55:34 table replication, without master-slave setup