From: Tom Lane <tgl@sss.pgh.pa.us>
To: David Leangen <postgres@leangen.net>
Cc: pgsql-admin@postgresql.org
Subject: Re: Programmatically changing passwords
Date: Thu, 10 Aug 2006 01:36:17 -0400
Message-ID: <11476.1155188177@sss.pgh.pa.us> (raw)
In-Reply-To: <25AE18F6-0BF6-4168-8A01-16BB6ED5EFE9@leangen.net>
References: <7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net>
<10432.1155185694@sss.pgh.pa.us>
<25AE18F6-0BF6-4168-8A01-16BB6ED5EFE9@leangen.net>
David Leangen <postgres@leangen.net> writes:
> Yes, that is my point. After having installed the standard postgresql
> package, I would then install my custom-postgres-config package. In
> this package, I tinker with the default configuration so I can put
> postgres into a known state programmatically, without any user
> interaction.
> The problem is that createuser doesn't allow for this: it prompts the
> user for a password, which does not work in this situation, as you
> pointed out.
I rather doubt that: the default RPM installation uses ident
authentication. Which has got plenty of downsides, but unexpected
password prompts is not one of them. Perhaps you are making your
configuration changes in a bad order?
regards, tom lane
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: tgl@sss.pgh.pa.us, postgres@leangen.net
Subject: Re: Programmatically changing passwords
In-Reply-To: <11476.1155188177@sss.pgh.pa.us>
References: <7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net> <10432.1155185694@sss.pgh.pa.us> <25AE18F6-0BF6-4168-8A01-16BB6ED5EFE9@leangen.net> <11476.1155188177@sss.pgh.pa.us>
* 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