Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 78CDC4766AB for ; Fri, 23 Aug 2002 13:30:04 -0400 (EDT) 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 BF22D476633 for ; Fri, 23 Aug 2002 13:30:02 -0400 (EDT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.10.1) id g7NHTvW11648; Fri, 23 Aug 2002 13:29:57 -0400 (EDT) From: Bruce Momjian Message-Id: <200208231729.g7NHTvW11648@candle.pha.pa.us> Subject: Re: Passwords and batch processes (was Re: Problem with In-Reply-To: To: "David F. Skoll" Date: Fri, 23 Aug 2002 13:29:57 -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-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200208/289 X-Sequence-Number: 5403 David F. Skoll wrote: > On Fri, 23 Aug 2002, Bruce Momjian wrote: > > > 7.3 will have a password file read from the user's home directory that > > will handle this; it can support multiple usernames in the same file. > > Sounds good. I assume you will pick the password based on > the username/database server/database name combination? > > And I'm sure you'll do security checks on the file before using it > (owned by the user, not world-readable, all parent directories have > sane permissions and ownerships.) But I'll post this anyway as a gentle > reminder. :-) Commit message is: I'm giving a try at some TODO items. Currently it's the turn of the PGPASSWORDFILE environment variable. I have modified libpq to make use of this variable. I present the first cut here. Currently the format for the file should be host:port:database:user:password Alvaro Herrera You can look in CVS at interfaces/libpq/fe-connect.c. I don't see any permission checks in there at all. -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073