Received: from localhost (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 1FB0D64FCFB for ; Mon, 8 Dec 2008 10:36:50 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 47355-01 for ; Mon, 8 Dec 2008 10:36:43 -0400 (AST) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from rv-out-0506.google.com (rv-out-0506.google.com [209.85.198.225]) by mail.postgresql.org (Postfix) with ESMTP id 077286501FD for ; Mon, 8 Dec 2008 10:36:38 -0400 (AST) Received: by rv-out-0506.google.com with SMTP id b25so1199532rvf.43 for ; Mon, 08 Dec 2008 06:36:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:mime-version:content-type:content-transfer-encoding :content-disposition:x-google-sender-auth; bh=Fvlj2aKLpaj6mVOCEKUED7vXCZ9P2NKd6M6cIWmPbw4=; b=o3k/AdH+RsRAqK+76AcYabMS6HIvNj629dNtzRkKqBwk5meTYfgPdg8eKRzqE9zwCT zbFrVORKQ9hP8MJSIUq8VN8ugfvT1kbEzhgU/zbLAaeM8S7X9rTgZ3N4u7/K2u4r57A9 A0joqKLifyh/mbHxqo8XIVxyJwbW+ZSxRS0k0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition:x-google-sender-auth; b=iHSTYsg7elSD7HMSoRNd4ZtCgZfH3whXrvzwFuF/NbXjy0fGARSSXghAflmD2CYX9O JGMi5fgy5NvKaFYq0/PO8TmBoQvB6r5si1LXPXMvoY203ZI0/5MowXxG1tFGvecxbLcw KiZ9lj1wDFZ4xNEZTCu6rmtkOEUi+t2aKKNNY= Received: by 10.141.62.7 with SMTP id p7mr1685053rvk.113.1228746995638; Mon, 08 Dec 2008 06:36:35 -0800 (PST) Received: by 10.140.185.21 with HTTP; Mon, 8 Dec 2008 06:36:35 -0800 (PST) Message-ID: <6835906b0812080636m1c727285j77d29dc90eae2a6d@mail.gmail.com> Date: Mon, 8 Dec 2008 09:36:35 -0500 From: "Daniel Scott" To: pgsql-admin@postgresql.org Subject: Change user password MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Google-Sender-Auth: c150433e6dadfeac X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200812/45 X-Sequence-Number: 30878 Hi, Is is possible to modify a user password using a command line script? I know about the ALTER USER command from within the client, but this looks like it's quite insecure, storing the password in the history. I know it's possible to insert the encrypted password with ALTER USER but that means generating the hash elsewhere. A simple 'alteruser -P username' which then prompts for the user password would be nice. Does this exist? Thanks, Dan Scott