Re: How to secure pgpass file from unauthorized reading of passwords ? (WIndows) - Mailing list pgsql-general

From Magnus Hagander
Subject Re: How to secure pgpass file from unauthorized reading of passwords ? (WIndows)
Date
Msg-id 6BCB9D8A16AC4241919521715F4D8BCE6C7AB3@algol.sollentuna.se
Whole thread Raw
In response to How to secure pgpass file from unauthorized reading of passwords ? (WIndows)  (Zlatko Matić <zlatko.matic1@sb.t-com.hr>)
List pgsql-general
> Hello.
>
> It seems that for all automated tasks (backup, autovacuum
> etc.) passwords should be provided by pgpass file.
> But, anyone can read pgpass file....
>
> How can I make it secure that nobody can read it, except
> programs for backup and autovacuum ?

Set filesystem permissions on the file.

The default is to allow only the user who owns the directory to read it (plus administrators of course). I'm not sure
whereyou get the "anyone can read pgpass" from. 

//Magnus

pgsql-general by date:

Previous
From: TJ O'Donnell
Date:
Subject: Re: problem with bit(n) type
Next
From: Lincoln Yeoh
Date:
Subject: Re: Row level locking