X-Original-To: pgsql-admin-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 913C79FB2CB for ; Thu, 10 Aug 2006 02:36:24 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 00726-08 for ; Thu, 10 Aug 2006 02:36:20 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 180279FB2C5 for ; Thu, 10 Aug 2006 02:36:19 -0300 (ADT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k7A5aHlE011477; Thu, 10 Aug 2006 01:36:17 -0400 (EDT) To: David Leangen cc: pgsql-admin@postgresql.org Subject: Re: Programmatically changing passwords 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> Comments: In-reply-to David Leangen message dated "Thu, 10 Aug 2006 14:11:04 +0900" Date: Thu, 10 Aug 2006 01:36:17 -0400 Message-ID: <11476.1155188177@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.133 tagged_above=0 required=5 tests=AWL, SPF_HELO_PASS, SPF_PASS X-Spam-Level: X-Archive-Number: 200608/130 X-Sequence-Number: 22673 David Leangen 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