Re: Change user password

From: "Scott Marlowe" <scott(dot)marlowe(at)gmail(dot)com>
To: "Dan Scott" <danieljamesscott(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: Change user password
Date: 2008-12-10 04:43:11
Message-ID: dcc563d10812092043o48465a6bj1ce16182c3dda7ca@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

On Fri, Dec 5, 2008 at 8:42 AM, Dan Scott <danieljamesscott(at)gmail(dot)com> wrote:
> 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?

\password from the psql prompt does that.

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Michael Leshchenko 2008-12-10 07:26:56 File system level backup with more than one cluster folders
Previous Message Quan Zongliang 2008-12-10 04:34:19 Re: Change user password