pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Raj Mathur <raju@linux-delhi.org>
To: pgsql-admin@postgresql.org
Subject: Re: Move passwords between databases
Date: Tue, 17 Jun 2003 08:33:06 +0530
Message-ID: <16110.34026.781292.743750@mail.linux-delhi.org> (raw)
In-Reply-To: <6159.1055791653@sss.pgh.pa.us>
References: <16109.51463.688614.39084@mail.linux-delhi.org>
	<2913.1055774886@sss.pgh.pa.us>
	<16109.59426.74922.358335@mail.linux-delhi.org>
	<6159.1055791653@sss.pgh.pa.us>

>>>>> "Tom" == Tom Lane <tgl@sss.pgh.pa.us> writes:

    Tom> Raj Mathur <raju@linux-delhi.org> writes:
    >> mdu=# alter user raju with encrypted password 'raju'; ALTER
    >> USER mdu=# select passwd from pg_shadow where usename='raju';
    >> passwd
    >> -------------------------------------
    >> md5ef70c430d5ed1ed52bd2ae960bb8ebe4 (1 row)

    >> mdu=# create user xxx with password
    >> 'md5ef70c430d5ed1ed52bd2ae960bb8ebe4'; CREATE USER

    Tom> That's not going to work, because the user name is included
    Tom> into the password encryption algorithm, so two different
    Tom> usernames with the same cleartext password are going to have
    Tom> two different encrypted passwords.  (This is a feature, not a
    Tom> bug.)

Oooh, that's what I was missing then.

    Tom> You can transfer the same usernames with the same passwords
    Tom> from one system to another using the method shown above.  You
    Tom> cannot assign one user's password to another username this
    Tom> way.

Great, it works now.

Thanks!  Both PostgreSQL and you guys rock!

Regards,

-- Raju
-- 
Raj Mathur                raju@kandalaya.org      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves



view thread (6+ messages)

Message-ID: <16110.34026.781292.743750@mail.linux-delhi.org>
Permalink:  ../16110.34026.781292.743750@mail.linux-delhi.org/
Also on:    postgresql.org/message-id/16110.34026.781292.743750@mail.linux-delhi.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: raju@linux-delhi.org
  Subject: Re: Move passwords between databases
  In-Reply-To: <16110.34026.781292.743750@mail.linux-delhi.org>
  References: <16109.51463.688614.39084@mail.linux-delhi.org> <2913.1055774886@sss.pgh.pa.us> <16109.59426.74922.358335@mail.linux-delhi.org> <6159.1055791653@sss.pgh.pa.us> <16110.34026.781292.743750@mail.linux-delhi.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox