X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (neptune.hub.org [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 38A09D1B44F for ; Tue, 13 Jan 2004 19:48:00 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 21997-10 for ; Tue, 13 Jan 2004 15:47:30 -0400 (AST) Received: from curie.credativ.org (credativ.com [217.160.209.18]) by svr1.postgresql.org (Postfix) with ESMTP id 00BBFD1DAE0 for ; Tue, 13 Jan 2004 15:47:28 -0400 (AST) Received: from localhost (localhost [127.0.0.1]) by curie.credativ.org (Postfix) with ESMTP id 9ED7E5626C; Tue, 13 Jan 2004 20:47:28 +0100 (CET) Received: from colt.pezone.net (dsl-213-023-254-093.arcor-ip.net [213.23.254.93]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by curie.credativ.org (Postfix) with ESMTP id C593156243; Tue, 13 Jan 2004 20:47:27 +0100 (CET) From: Peter Eisentraut To: aspire420@hotpop.com, Sai Hertz And Control Systems , pgsql-admin@postgresql.org Subject: Re: psql Automatic login In Bash Script Date: Tue, 13 Jan 2004 20:47:28 +0100 User-Agent: KMail/1.5.1 References: <40044B5D.9040909@sancharnet.in> In-Reply-To: <40044B5D.9040909@sancharnet.in> Organization: credativ GmbH MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401132047.28432.peter.eisentraut@credativ.de> X-Virus-Scanned: by AMaViS at credativ.com X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200401/146 X-Sequence-Number: 12009 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.