Re: security question

From: Andy Shellam <andy(dot)shellam-lists(at)mailnetwork(dot)co(dot)uk>
To: Dave Lazar <hunkybill(at)gmail(dot)com>
Cc: pgsql-admin(at)postgresql(dot)org
Subject: Re: security question
Date: 2007-04-04 20:29:28
Message-ID: 46140AA8.6030701@mailnetwork.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

One quick point - you don't need to alter anything in the template1
database to set user's passwords.
In PgAdmin III - use the "Login roles" section to set the passwords -
that way everything will get committed correctly.

Also, have you restarted PostgreSQL since changing pg_hba.conf?

Andy.

Dave Lazar wrote:
> Hi,
>
> I have a quick question about my installation that puzzles me. pgsql
> 8.2.3 on a debian box. Tested it out the database works. pgadmin III
> connects fine too. I used alter table on the template1 database to
> give postgres user a password. I changed pg_hba to use md5 on all
> connections including local.
>
> When I use psql -U postgres -d myDataBase to connect to myDataBase I
> do not get prompted for a password? When I su postgres and use psql
> myDatabase I get prompted for my password?
>
> Is there some reason why I can login using psql to a database when
> postgres is supposed to use passwords for all access?
>
> Probably a mistake I made somewhere along the line... just not sure
> where, usually I get my pgsql install working great!
>
> Thanks
>
> Dave
> !DSPAM:37,46140a1b89297979110243!

In response to

Browse pgsql-admin by date

  From Date Subject
Next Message Jeff Frost 2007-04-04 20:35:06 Re: security question
Previous Message Ray Stell 2007-04-04 20:28:38 Re: security question