Received: from localhost (unknown [200.46.204.183]) by developer.postgresql.org (Postfix) with ESMTP id 839482E002F for ; Sat, 24 May 2008 06:31:08 -0300 (ADT) Received: from developer.postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 74417-10 for ; Sat, 24 May 2008 06:30:47 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from ipmail01.adl6.internode.on.net (ipmail01.adl6.internode.on.net [203.16.214.146]) by developer.postgresql.org (Postfix) with ESMTP id 1DC7B2E002E for ; Sat, 24 May 2008 06:30:49 -0300 (ADT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EABx7N0jLevdH/2dsb2JhbACBVawl X-IronPort-AV: E=Sophos;i="4.27,534,1204464600"; d="scan'208";a="109784222" Received: from ppp247-71.static.internode.on.net (HELO DevBox.local) ([203.122.247.71]) by ipmail01.adl6.internode.on.net with ESMTP; 24 May 2008 19:00:45 +0930 Message-ID: <4837E043.6000504@Sheeky.Biz> Date: Sat, 24 May 2008 19:00:43 +0930 From: Shane Ambler User-Agent: Thunderbird 2.0.0.12 (Macintosh/20080213) MIME-Version: 1.0 To: Graeme Gould CC: pgsql-admin@postgresql.org Subject: Re: pgpass.conf References: <374B96DE9C73BE4D9398A52ECE9FB220C99F1E@SRV2011.aragon-housing.co.uk> In-Reply-To: <374B96DE9C73BE4D9398A52ECE9FB220C99F1E@SRV2011.aragon-housing.co.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200805/218 X-Sequence-Number: 29302 Graeme Gould wrote: > Hi > > I have noticed something relating to this file that I am slightly > worried about. If you open the pgpass.conf file with Notepad it > displays the full contents in open text - including the administrator > name and password. > > Is this something that other people have come across and has > protecting/ciphering this information ever been considered? > Yes that is normal and I don't believe there is any plan to change it. From the manual - On Unix systems, the permissions on .pgpass must disallow any access to world or group; achieve this by the command chmod 0600 ~/.pgpass. If the permissions are less strict than this, the file will be ignored. On Microsoft Windows, it is assumed that the file is stored in a directory that is secure, so no special permissions check is made. So on windows it is assumed that the owner of the file (the one who's home dir it is located in and the one running the software that will use it) is the only one that can access the data in the file. Normal permissions setup on windows will match this. It's use is a convenience and I think for the most part not highly recommended. -- Shane Ambler pgSQL (at) Sheeky (dot) Biz Get Sheeky @ http://Sheeky.Biz