pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Shane Ambler <pgsql@Sheeky.Biz>
To: Graeme Gould <graeme.gould@aragon-housing.co.uk>
Cc: pgsql-admin@postgresql.org
Subject: Re: pgpass.conf
Date: Sat, 24 May 2008 19:00:43 +0930
Message-ID: <4837E043.6000504@Sheeky.Biz> (raw)
In-Reply-To: <374B96DE9C73BE4D9398A52ECE9FB220C99F1E@SRV2011.aragon-housing.co.uk>
References: <374B96DE9C73BE4D9398A52ECE9FB220C99F1E@SRV2011.aragon-housing.co.uk>

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 -

<quote>
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.
</quote>

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



view thread (2+ messages)

Message-ID: <4837E043.6000504@Sheeky.Biz>
Permalink:  ../4837E043.6000504@Sheeky.Biz/
Also on:    postgresql.org/message-id/4837E043.6000504@Sheeky.Biz

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: pgsql@Sheeky.Biz, graeme.gould@aragon-housing.co.uk
  Subject: Re: pgpass.conf
  In-Reply-To: <4837E043.6000504@Sheeky.Biz>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox