Received: from localhost (maia-3.hub.org [200.46.204.184]) by postgresql.org (Postfix) with ESMTP id 814049FB41A for ; Wed, 4 Apr 2007 17:25:30 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.184]) (amavisd-maia, port 10024) with ESMTP id 17968-02 for ; Wed, 4 Apr 2007 17:25:16 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.246]) by postgresql.org (Postfix) with ESMTP id 3D0AA9FB51C for ; Wed, 4 Apr 2007 17:25:19 -0300 (ADT) Received: by an-out-0708.google.com with SMTP id c24so388660ana for ; Wed, 04 Apr 2007 13:25:18 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=dJa9qaDGSYhpLcp3PHDRTdbS03PftY/cDvMKE3CIr1k+WMbc0AAj5xRH82pdftN026NzjSFZGkS3tgX7PzKESv8SP3xCEUW9am669I5XDSjOOKpNihvcusJutpWn4KqjXRkh3nfBRYsXjAb7Xv/3SIv2RRX0WBBMW4UwVzxPkDw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=k+lgI9FBrs/TOTdm2RDwPtvOi87WPHKOoh09SwGQ+FGQJSYhgdUiACJNGA+Y1JTmoA1ClDORbODQHCLgNpHVnrw7LRfDamXNIndTOpWAYMtT17Z4JVUAkVt2H+sRHEalhE/e8ep+Jp2GXTKSBnQJoITUTsPYA1uoxkcNsI6HK3I= Received: by 10.101.14.16 with SMTP id r16mr780797ani.1175718317602; Wed, 04 Apr 2007 13:25:17 -0700 (PDT) Received: by 10.100.11.4 with HTTP; Wed, 4 Apr 2007 13:25:17 -0700 (PDT) Message-ID: Date: Wed, 4 Apr 2007 16:25:17 -0400 From: "Dave Lazar" To: pgsql-admin@postgresql.org Subject: security question MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_36048_6979780.1175718317523" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200704/38 X-Sequence-Number: 25102 ------=_Part_36048_6979780.1175718317523 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 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 ------=_Part_36048_6979780.1175718317523 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline 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
------=_Part_36048_6979780.1175718317523--