Re: How to pg_dumpall without root password - Mailing list pgsql-general

From Stephen Frost
Subject Re: How to pg_dumpall without root password
Date
Msg-id 20070713015106.GR4887@tamriel.snowman.net
Whole thread Raw
In response to Re: How to pg_dumpall without root password  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
* Tom Lane (tgl@sss.pgh.pa.us) wrote:
> If you're worried about having the system insecure even transiently
> against local bad guys, it's possible to do this without opening any
> hole, but it requires taking the DB down for a few minutes so you can
> do the password change in standalone mode.

An alternative to 'trust' might be to change pg_hba.conf to use 'ident'
over a local socket (on systems which support that).  You'd need to know
the superuser name (usually 'postgres') and either become that user on
the unix side or set up an ident map from whatever user you want to
be...

    Thanks,

        Stephen

Attachment

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: question on scan of clustered index
Next
From: Robert Treat
Date:
Subject: Re: Force SSL / username combination