Received: from candle.pha.pa.us (216-55-132-35.dsl.san-diego.abac.net [216.55.132.35]) by postgresql.org (Postfix) with ESMTP id 50926475A0A for ; Tue, 9 Jul 2002 22:11:10 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g6A2B8r13552; Tue, 9 Jul 2002 22:11:08 -0400 (EDT) From: Bruce Momjian Message-Id: <200207100211.g6A2B8r13552@candle.pha.pa.us> Subject: Re: Authentication in batch processing In-Reply-To: <3D2AF57E.9000701@nurseamerica.net> To: Kevin Brannen Date: Tue, 9 Jul 2002 22:11:08 -0400 (EDT) Cc: pgsql-admin@postgresql.org X-Mailer: ELM [version 2.4ME+ PL99 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Archive-Number: 200207/155 X-Sequence-Number: 4841 Kevin Brannen wrote: > Bruce Momjian wrote: > ... > > > > 7.3 may remove PGPASSWORD, I think, and instead allow you to specify a > > file that contains the password. > > But do you know how many hours it took me to find out about PGPASSWORD > in the docs and now you want to change that? :-) > > How about all 4 approaches: on the command-line, from an env-var, from > a file, and finally prompting if there's a tty. Pick any order you want > on the first 3, but flexibility is important, and circumstances do > change over time that may make 1 more desireable then the others. PGPASSWORD is a security problem on platforms that can show environment variables, mostly *BSD's, and most people don't know it is visible. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 853-3000 + If your life is a hard drive, | 830 Blythe Avenue + Christ can be your backup. | Drexel Hill, Pennsylvania 19026