pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Lazar <hunkybill@gmail.com>
To: pgsql-admin@postgresql.org
Subject: security question
Date: Wed, 4 Apr 2007 16:25:17 -0400
Message-ID: <e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com> (raw)

Hi,

I have a quick question about my installation that puzzles me. pgsql
8.2.3on 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

view thread (5+ messages)  latest in thread

Message-ID: <e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com>
Permalink:  ../e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com/
Also on:    postgresql.org/message-id/e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com

 · 

reply

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: hunkybill@gmail.com
  Subject: Re: security question
  In-Reply-To: <e0d71d270704041325h78978100rf782f60ac06c8e6a@mail.gmail.com>

* 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