pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Scott Marlowe <scott.marlowe@gmail.com>
To: Dan Scott <danieljamesscott@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: Change user password
Date: Tue, 9 Dec 2008 21:43:11 -0700
Message-ID: <dcc563d10812092043o48465a6bj1ce16182c3dda7ca@mail.gmail.com> (raw)
In-Reply-To: <6835906b0812050742t279c9f04r18218cff3d79eb78@mail.gmail.com>
References: <6835906b0812050742t279c9f04r18218cff3d79eb78@mail.gmail.com>

On Fri, Dec 5, 2008 at 8:42 AM, Dan Scott <danieljamesscott@gmail.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.



view thread (4+ messages)

Message-ID: <dcc563d10812092043o48465a6bj1ce16182c3dda7ca@mail.gmail.com>
Permalink:  ../dcc563d10812092043o48465a6bj1ce16182c3dda7ca@mail.gmail.com/
Also on:    postgresql.org/message-id/dcc563d10812092043o48465a6bj1ce16182c3dda7ca@mail.gmail.com

 · 

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 using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: scott.marlowe@gmail.com, danieljamesscott@gmail.com
  Subject: Re: Change user password
  In-Reply-To: <dcc563d10812092043o48465a6bj1ce16182c3dda7ca@mail.gmail.com>

* 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