Received: from cartero.aimplas.net (pegaso.aimplas.net [194.224.59.133]) by postgresql.org (Postfix) with SMTP id 34155475873 for ; Mon, 22 Jul 2002 08:16:10 -0400 (EDT) Received: (qmail 15816 invoked from network); 22 Jul 2002 12:31:31 -0000 Received: from unknown (HELO vvives.aimplas.es) ([10.0.0.27]) (envelope-sender ) by pegaso.aimplas.net (qmail-ldap-1.03) with SMTP for ; 22 Jul 2002 12:31:31 -0000 Received: from aimplas.es (localhost.localdomain [127.0.0.1]) by vvives.aimplas.es (8.11.6/linuxconf) with ESMTP id g6MCFNT03310; Mon, 22 Jul 2002 14:15:23 +0200 Message-ID: <3D3BF75A.BBA16AA6@aimplas.es> Date: Mon, 22 Jul 2002 14:15:22 +0200 From: Vicente Vives X-Mailer: Mozilla 4.78 [en] (X11; U; Linux 2.4.18 i686) X-Accept-Language: es-ES, en MIME-Version: 1.0 To: Artur Pietruk Cc: pgsql-admin@postgresql.org Subject: Re: usernames and passwords References: <3D3BDB95.EE5F991F@aimplas.es> <20020722110844.GP13486@yoda.plukwa.net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200207/300 X-Sequence-Number: 4984 Artur Pietruk wrote: > > On Mon, Jul 22, 2002 at 12:16:53PM +0200, Vicente Vives wrote: > > Hi . > > Hello! > > > I have a server running PostgreSQL Version 6.5, and i have a problem. > > I grant some distinct privileges to some users (and that works). The > > problem > > is that those users can log in with any password. Each user has a > > password > > assigned but not matter the password the user use to log in, if the user > > exists always will get access to the database. > > Go to your $PGDATA directory, and check your pg_hba.conf. That's > file where you can confiure access do your db - it is wery well commented, > read it and you will find out what to do (if not, go to docs and read about > pg_hba.conf). It looks, that you may have "trust" enabled for local > connections (or for whatever way they are connecting), or something like > that, and that is why users are authenticated without their passwords. > That's correct! In my pg_hba.conf the option 'trust' was enabled. If i changed it to 'crypt' the users can access correctly. Thank you very much! Vicent Vives.