pg.ddx.io pgsql-admin@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pg_hba.conf and postgresql 7.2 2+ messages / 2 participants [nested] [flat]
* pg_hba.conf and postgresql 7.2 @ 2004-02-03 18:48 amy@real-time.com 2004-02-03 20:18 ` Re: pg_hba.conf and postgresql 7.2 Bruno Wolff III <bruno@wolff.to> 0 siblings, 1 reply; 2+ messages in thread From: amy@real-time.com @ 2004-02-03 18:48 UTC (permalink / raw) To: pgsql-admin New to postgresql...I've done a lot of google-searching and searching of the pgsql archives but haven't found much... I'm trying to configure pg_hba.conf so that: 1. using a local connection, user postgres does not require a password for any database 2. using a local connection, all other users require password for all databases We are running debian stable so we have postgresql 7.2 From what I understand, the syntax of pg_hba.conf changed with 7.3, making it easier to do what I want to above. With 7.3, I would do this I think: local all postgres trust local all md5 Is there a way to accomplish this with version 7.2? If not, I was planning on setting a password for user postgres. However, in that case, what's the easiest way for backup scripts, etc, running as user postgres to be passed the password? Are there any online documents for recommended ways of configuring pg_hba.conf with security in mind? Thanks for your help. -- Amy Tanner amy@real-time.com ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: pg_hba.conf and postgresql 7.2 2004-02-03 18:48 pg_hba.conf and postgresql 7.2 amy@real-time.com @ 2004-02-03 20:18 ` Bruno Wolff III <bruno@wolff.to> 0 siblings, 0 replies; 2+ messages in thread From: Bruno Wolff III @ 2004-02-03 20:18 UTC (permalink / raw) To: amy@real-time.com; +Cc: pgsql-admin On Tue, Feb 03, 2004 at 12:48:34 -0600, amy@real-time.com wrote: > New to postgresql...I've done a lot of google-searching and searching of > the pgsql archives but haven't found much... > > > I'm trying to configure pg_hba.conf so that: > > 1. using a local connection, user postgres does not require a password for any database > 2. using a local connection, all other users require password for all > databases > > We are running debian stable so we have postgresql 7.2 From what I > understand, the syntax of pg_hba.conf changed with 7.3, making it easier > to do what I want to above. With 7.3, I would do this I think: > > local all postgres trust > local all md5 > > Is there a way to accomplish this with version 7.2? I don't believe you can do it with 7.2. The first rule that matches on database, connection type and IP address applies. So you can't have different authentication methods for different database users. > > If not, I was planning on setting a password for user postgres. However, > in that case, what's the easiest way for backup scripts, etc, running as > user postgres to be passed the password? You might look at using ident authentication and a sameuser mapping. Whether this will work for you or not depends on how OS users relate to DB users. ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-02-03 20:18 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-02-03 18:48 pg_hba.conf and postgresql 7.2 amy@real-time.com 2004-02-03 20:18 ` Bruno Wolff III <bruno@wolff.to>
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