Problem with initdb -W

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: PostgreSQL-development <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Problem with initdb -W
Date: 2002-11-25 21:30:17
Message-ID: 200211252130.gAPLUHv24277@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

I have an IRC report, confirmed, that in RC2 initdb -W (set super-user
password) fails:

$ initdb -W
The files belonging to this database system will be owned by user
"postgres".
This user must also own the server process.

The database cluster will be initialized with locale C.

creating directory /u/pg/data... ok
creating directory /u/pg/data/base... ok
creating directory /u/pg/data/global... ok
creating directory /u/pg/data/pg_xlog... ok
creating directory /u/pg/data/pg_clog... ok
creating template1 database in /u/pg/data/base/1... ok
creating configuration files... ok
initializing pg_shadow... ok
Enter new superuser password:
Enter it again:
setting password...
The group file wasn't generated. Please report this problem.

initdb failed.
Removing /u/pg/data.

Of course, the obvious solution is not to use -W. ;-)

I will research this but I wanted to report it right away. My only
guess is that the standalone backend to alter the super-user password is
messing up things:

"$PGPATH"/postgres $PGSQL_OPT template1 >/dev/null <<EOF
ALTER USER "$POSTGRES_SUPERUSERNAME" WITH PASSWORD '$FirstPw';

--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 359-1001
+ If your life is a hard drive, | 13 Roberts Road
+ Christ can be your backup. | Newtown Square, Pennsylvania 19073

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Christopher Kings-Lynne 2002-11-25 21:38:17 Re: Problem with initdb -W
Previous Message Scott Shattuck 2002-11-25 18:59:33 transactions and stored procedures