From: Peter Eisentraut <peter.eisentraut@credativ.de>
To: aspire420@hotpop.com, Sai Hertz And Control Systems <sank89@sancharnet.in>
To: pgsql-admin@postgresql.org
Subject: Re: psql Automatic login In Bash Script
Date: Tue, 13 Jan 2004 20:47:28 +0100
Message-ID: <200401132047.28432.peter.eisentraut@credativ.de> (raw)
In-Reply-To: <40044B5D.9040909@sancharnet.in>
References: <40044B5D.9040909@sancharnet.in>
Sai Hertz And Control Systems wrote:
> What I need is since password be stored in the bash variable for
> once I may pass on the variable with password to
> psql
> pg_dump
> pg_restore
> and my database migration would go smothly
That would be a security hole because then other users can read the
password using 'ps'.
> Also would not like to set ~/.pgpass
Why not? That's what it's for.
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: peter.eisentraut@credativ.de, sank89@sancharnet.in
Subject: Re: psql Automatic login In Bash Script
In-Reply-To: <200401132047.28432.peter.eisentraut@credativ.de>
References: <40044B5D.9040909@sancharnet.in> <200401132047.28432.peter.eisentraut@credativ.de>
* 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