pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
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 00:54:54 -0400
Message-ID: <10432.1155185694@sss.pgh.pa.us> (raw)
In-Reply-To: <7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net>
References: <7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net>

David Leangen <postgres@leangen.net> writes:
> 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

Basically, you can't.  The entire concept of RPM is built around
the assumption that there is no user interaction during an RPM
install or update.  (Do "yum update" after not having done it for
awhile ... watch several hundred package updates go by ... now
imagine that each one of those felt that it could demand some input
from you.  Multiply by 10 if doing a system install from scratch.)

The standard RPM-ization of Postgres does not actually have any
superuser password set at all: you pretty much have to be root
to get into the database the first time.  Considering you also
have to be root to install the package or start the service,
I don't see any fundamental problem with that.

			regards, tom lane



view thread (8+ messages)  latest in thread

Message-ID: <10432.1155185694@sss.pgh.pa.us>
Permalink:  ../10432.1155185694@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/10432.1155185694@sss.pgh.pa.us

 · 

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 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: <10432.1155185694@sss.pgh.pa.us>
  References: <7176B83D-AF04-4FB9-AE6D-776660B95257@leangen.net> <10432.1155185694@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