Programmatically changing passwords

From: David Leangen <postgres(at)leangen(dot)net>
To: pgsql-admin(at)postgresql(dot)org
Subject: Programmatically changing passwords
Date: 2006-08-10 04:12:41
Message-ID: 7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin


Hello!

I am trying to build an RPM package that will put my Postgres
installation into a known (usable) state, without requiring any
interaction.

To this effect, I need to do the following:

1. set password for superuser
2. createuser user
3. createdb -O user dbname

No problems with (3) above. But for (1) and (2), how can I set the
passwords programmatically, since createuser does not let me do this
(requires interactive prompt from user)?

Thank you!

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Tom Lane 2006-08-10 04:54:54 Re: Programmatically changing passwords
Previous Message adey 2006-08-10 04:01:47 Re: vacuumdb exclude tables option?