pg.ddx.io  pgsql-php@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruno Wolff III <bruno@wolff.to>
To: Vishal Kashyap @ [SaiHertz] <vishalonlist@gmail.com>
Cc: Christopher Kings-Lynne <chriskl@familyhealth.com.au>
Cc: pgsql-php@postgresql.org
Subject: Re: PostgreSQL Backup Script
Date: Fri, 1 Apr 2005 07:50:30 -0600
Message-ID: <20050401135030.GA26112@wolff.to> (raw)
In-Reply-To: <77b69d2105033121483ce20e0a@mail.gmail.com>
References: <77b69d2105033120543ca670a7@mail.gmail.com>
	<424CD58F.3040108@familyhealth.com.au>
	<77b69d2105033121483ce20e0a@mail.gmail.com>

On Fri, Apr 01, 2005 at 11:18:13 +0530,
  "Vishal Kashyap @ [SaiHertz]" <vishalonlist@gmail.com> wrote:
> > I suggest allowing the 'postgres' user to connect with 'ident sameuser'
> > in pg_hba.conf from the localhost only, then always just run pg_dump as
> > 'postgres'.
> 
> That means 
> 
> # TYPE  DATABASE    USER        IP-ADDRESS        IP-MASK           METHOD
> host    <mydb>  <myuser>         localhost     255.255.255.255    
> ident sameuser
> 
> only <myuser> will NOT be asked for password when it does
> pg_dump -U <myuser>
> when logged in to its shell account with <myuser>
> and If I run a crontab with user <myuser> the above lines again stands true.
> 
> 
> What you say ?

Don't do this as a host entry if your OS supports domain sockets with
getpeerid. Use a 'local' entry. That way you don't need to run an ident
server.

You also have the option to set up custom map entries so that the OS user
is not the same as the DB user.



view thread (5+ messages)

Message-ID: <20050401135030.GA26112@wolff.to>
Permalink:  ../20050401135030.GA26112@wolff.to/
Also on:    postgresql.org/message-id/20050401135030.GA26112@wolff.to

 · 

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-php@postgresql.org
  Cc: bruno@wolff.to, vishalonlist@gmail.com, chriskl@familyhealth.com.au
  Subject: Re: PostgreSQL Backup Script
  In-Reply-To: <20050401135030.GA26112@wolff.to>
  References: <77b69d2105033120543ca670a7@mail.gmail.com> <424CD58F.3040108@familyhealth.com.au> <77b69d2105033121483ce20e0a@mail.gmail.com> <20050401135030.GA26112@wolff.to>

* 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