X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.193]) by svr1.postgresql.org (Postfix) with ESMTP id F012430EE83 for ; Mon, 16 Jun 2003 13:41:44 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr1.postgresql.org [64.117.224.193]) (amavisd-new, port 10024) with ESMTP id 28566-03 for ; Mon, 16 Jun 2003 10:41:34 -0300 (ADT) Received: from ns3.biznetindia.com (unknown [203.200.89.83]) by svr1.postgresql.org (Postfix) with ESMTP id 498F130EEBE for ; Mon, 16 Jun 2003 10:41:33 -0300 (ADT) Received: from mail.linux-delhi.org ([203.122.36.68]) by ns3.biznetindia.com (8.12.8/8.12.5) with ESMTP id h5GDfTgC019731 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Mon, 16 Jun 2003 19:11:32 +0530 Received: from mail.linux-delhi.org (localhost [127.0.0.1]) by mail.linux-delhi.org (8.12.8/8.12.5) with ESMTP id h5GDfSWJ008305 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 16 Jun 2003 19:11:29 +0530 Received: (from raju@localhost) by mail.linux-delhi.org (8.12.8/8.12.8/Submit) id h5GDfRPW008301; Mon, 16 Jun 2003 19:11:27 +0530 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16109.51463.688614.39084@mail.linux-delhi.org> Date: Mon, 16 Jun 2003 19:11:27 +0530 To: pgsql-admin@postgresql.org Subject: Move passwords between databases X-Mailer: VM 7.07 under 21.4 (patch 8) "Honest Recruiter" XEmacs Lucid From: Raj Mathur X-Archive-Number: 200306/163 X-Sequence-Number: 9154 Hi, Using Postgresql 7.2.3 on Linux, is there an easy way to transfer user passwords from one database to another? I have an application that creates data (and users) centrally and then distributes them to remote databases. I can transfer everything else, but do not know how to transfer MD5 passwords. As a last resort the application could store the passwords in plain-text in the central database and then use a remote "alter user with encrypted password..." command to update the user's password, but I'd rather avoid that if there is any alternative available. I tried an "update pg_shadow set passwd=... where usename=..." 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