pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mr. Dan <bitsandbytes88@hotmail.com>
To: pgsql-admin@postgresql.org
Subject: hiding the postgres password - v8.1.0
Date: Mon, 20 Mar 2006 16:19:30 -0500
Message-ID: <BAY102-F12288959843580247B5F12D1DB0@phx.gbl> (raw)

Hi,

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.

We have tried putting the postgres user password in a perl script, however 
when we run the script we get password coming up interactively as the perl 
script is running doing a pg_dump or createdb for example.

We want regular users to be able to pg_dump, drop, create, vacuum etc.  
Postgres is the owner of our data directory.  The group permission are in a 
sys - admin group.

Thanks for any feedback,
~DjK





view thread (3+ messages)  latest in thread

Message-ID: <BAY102-F12288959843580247B5F12D1DB0@phx.gbl>
Permalink:  ../BAY102-F12288959843580247B5F12D1DB0@phx.gbl/
Also on:    postgresql.org/message-id/BAY102-F12288959843580247B5F12D1DB0@phx.gbl

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: bitsandbytes88@hotmail.com
  Subject: Re: hiding the postgres password - v8.1.0
  In-Reply-To: <BAY102-F12288959843580247B5F12D1DB0@phx.gbl>
  References: <BAY102-F12288959843580247B5F12D1DB0@phx.gbl>

* 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