From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | David Leangen <postgres(at)leangen(dot)net> |
Cc: | pgsql-admin(at)postgresql(dot)org |
Subject: | Re: Programmatically changing passwords |
Date: | 2006-08-10 04:54:54 |
Message-ID: | 10432.1155185694@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-admin |
David Leangen <postgres(at)leangen(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2006-08-10 04:59:52 | Re: Programmatically changing passwords |
Previous Message | David Leangen | 2006-08-10 04:12:41 | Programmatically changing passwords |