Skip site navigation (1) Skip section navigation (2)

initdb initial password from file

From: "Magnus Hagander" <mha(at)sollentuna(dot)net>
To: <pgsql-patches(at)postgresql(dot)org>
Subject: initdb initial password from file
Date: 2004-06-20 17:17:01
Message-ID: 6BCB9D8A16AC4241919521715F4D8BCE34BCE6@algol.sollentuna.se (view raw or flat)
Thread:
Lists: pgsql-patches
Attached is a patch that adds the option --pwfile=<filename> to initdb.
The first line of this file is used to set the new superuser password
(the same way --pwprompt asks for one).

This feature is needed for the win32 GUI installer (possibly other
installers?), which need a way to specify the password to be set. Per
previous discussions commandline parameter or environment variable are
not secure. Storing it in a file is the same thing libpq does for
~/.pgpass, and should be secure enough, I think.


//Magnus


Attachment: initdb_pwfile.patch
Description: application/octet-stream (6.1 KB)

Responses

pgsql-patches by date

Next:From: Magnus HaganderDate: 2004-06-20 17:34:34
Subject: Re: Cancel/Kill backend functions -- docs
Previous:From: Magnus HaganderDate: 2004-06-20 15:41:10
Subject: Re: stderr & win32 admin check

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group