Re: dropdb to a remote host - Mailing list pgsql-general

From Bruce Momjian
Subject Re: dropdb to a remote host
Date
Msg-id 200111201823.fAKIN9528711@candle.pha.pa.us
Whole thread Raw
In response to dropdb to a remote host  (Alex Avriette <a_avriette@acs.org>)
List pgsql-general
> Well, yeah, this is how that happened. Could you please make a note in the
> pg_hba.conf for future releases indicating if you prohibit connections to
> template1 that certain commands (dropdb being one of them) will not work?

I have added this to pg_hba.conf.sample:

  # The superuser needs access to the 'template1' database because
  # it is used by a variety of PostgreSQL utility commands.

However, this glaringly shows how poor our user-specific authentication
is in pg_hba.conf.  You would have to create a password file with the
super user name in it and add that to the end of the template1 host line
to restrict just to superuser.  Quite cumbersome.

Hopefully in 7.3 we will be able to put usernames in pg_hba.conf.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

pgsql-general by date:

Previous
From: Alex Avriette
Date:
Subject: Re: Performance: Perl-DBI vs. PG Stored Procedures
Next
From: Alex Avriette
Date:
Subject: Re: dropdb to a remote host