X-Original-To: pgsql-admin-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id 43C159DCC91 for ; Mon, 20 Mar 2006 17:23:45 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 80161-05 for ; Mon, 20 Mar 2006 17:23:46 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from mx1.surnet.cl (mx1.surnet.cl [216.155.73.180]) by postgresql.org (Postfix) with ESMTP id 9984C9DCC84 for ; Mon, 20 Mar 2006 17:23:42 -0400 (AST) Received: from unknown (HELO cluster.surnet.cl) ([216.155.73.165]) by mx1.surnet.cl with ESMTP; 20 Mar 2006 17:23:44 -0400 X-IronPort-AV: i="4.03,112,1141614000"; d="scan'208"; a="47761757:sNHT18037232" Received: from alvh.no-ip.org (201.221.200.13) by cluster.surnet.cl (7.0.043) (authenticated as alvherre@surnet.cl) id 43A978FD00B3D568; Mon, 20 Mar 2006 17:23:44 -0400 Received: by alvh.no-ip.org (Postfix, from userid 1000) id EA0AAC45022; Mon, 20 Mar 2006 17:23:43 -0400 (CLT) Date: Mon, 20 Mar 2006 17:23:43 -0400 From: Alvaro Herrera To: "Mr. Dan" Cc: pgsql-admin@postgresql.org Subject: Re: hiding the postgres password - v8.1.0 Message-ID: <20060320212343.GD15091@surnet.cl> Mail-Followup-To: "Mr. Dan" , pgsql-admin@postgresql.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.11+cvs20060126 X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=2.187 required=5 tests=[AWL=-0.968, DNS_FROM_RFC_ABUSE=0.479, DNS_FROM_RFC_POST=1.44, RCVD_IN_SORBS_WEB=1.236] X-Spam-Score: 2.187 X-Spam-Level: ** X-Archive-Number: 200603/182 X-Sequence-Number: 20939 Mr. Dan wrote: > Is there a way to hide or encrypt the postgres password when the postgres > user is required to be the user in a shell script? This way we could have > a function called in a program, and the users could do something with out > actually seeing the postgres user password. See the docs for the .pgpass file, in the libpq section (Interfaces). -- Alvaro Herrera http://www.CommandPrompt.com/ PostgreSQL Replication, Consulting, Custom Development, 24x7 support