From: Andy Shellam <andy.shellam-lists@mailnetwork.co.uk>
To: Dave Lazar <hunkybill@gmail.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: security question
Date: Wed, 04 Apr 2007 21:29:28 +0100
Message-ID: <46140AA8.6030701@mailnetwork.co.uk> (raw)
In-Reply-To: <e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com>
References: <e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com>
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!
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 using the --to and --cc options:
reply via email
To: pgsql-admin@postgresql.org
Cc: andy.shellam-lists@mailnetwork.co.uk, hunkybill@gmail.com
Subject: Re: security question
In-Reply-To: <46140AA8.6030701@mailnetwork.co.uk>
* 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