Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id C1EF464FCFA for ; Mon, 15 Sep 2008 13:15:40 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10471-03 for ; Mon, 15 Sep 2008 13:15:34 -0300 (ADT) X-Greylist: delayed 00:31:50.020137 by SQLgrey-1.7.6 Received: from fileserver.binf.ku.dk (174.binf.ku.dk [130.225.125.174]) by postgresql.org (Postfix) with ESMTP id ADD6764FCEA for ; Mon, 15 Sep 2008 13:15:34 -0300 (ADT) Received: from localhost (firewall.binf.ku.dk [10.10.0.254]) by fileserver.binf.ku.dk (Postfix) with ESMTP id 9F69EE46B1; Mon, 15 Sep 2008 17:43:40 +0200 (CEST) Received: from localhost ([10.10.3.17] helo=localhost) by ASSP; 15 Sep 2008 17:43:40 +0200 Date: Mon, 15 Sep 2008 17:43:40 +0200 To: pgsql-admin@postgresql.org Subject: Trouble setting up access privileges Message-ID: <20080915154340.GA15530@optiplex36> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit User-Agent: Mutt/1.5.13 (2006-08-11) From: mkrist@binf.ku.dk X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200809/133 X-Sequence-Number: 30226 Hi pgsql-admin mailing list, I'm having some problems setting up access privileges via pg_hba.conf. The problem is that it seems that some Linux user accounts have password-less access to the pgsql databases via the 'pgsql' CLI tool even though I try to enforce md5 password protection. The relevant line in pg_hba.conf is this: host all mette,mkrist 10.10.0.0 255.255.0.0 md5 If I'm logged in as the Linux user "mkrist" and try to log in to a database as either the pgsql user "mette" or the pgsql user "mkrist" it requires me to enter a password (which it then accepts and logs me in). But if I'm OTOH logged in as the Linux user "mette" it only requires me to enter a password if I try to login to a database with the pgsql user "mkrist" (which it then accepts). If I try to login as the pgsql user "mette" it logs in without asking for a password. I can't find anything in the documentation about exceptions from the pg_hba.conf rules, so I'm quite surprised by this behaviour. Thank you, I'd appreciate any help. -- Michael Kristensen IT-studentermedhjælper / Sysadm student aid BINF