Received: from toto.mat.cc (IDENT:postfix@toto.mat.cc [212.43.217.25]) by hub.org (8.10.1/8.10.1) with ESMTP id e6R8NUA13699 for ; Thu, 27 Jul 2000 04:23:30 -0400 (EDT) Received: by toto.mat.cc (Postfix, from userid 10) id 871A110445; Thu, 27 Jul 2000 10:23:29 +0200 (CEST) Received: from club-internet.fr (gandalf.in.mat.cc [192.168.5.2]) by bilbo.in.mat.cc (Postfix) with ESMTP id 845953251D; Thu, 27 Jul 2000 10:23:24 +0200 (CEST) Message-ID: <397FF17C.4C7114E0@club-internet.fr> Date: Thu, 27 Jul 2000 10:23:24 +0200 From: Mathieu Arnold Organization: http://www.mat.cc/ X-Mailer: Mozilla 4.73 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 To: julien piaser Cc: pgsql-admin@postgresql.org Subject: Re: user password problem References: <397FECFF.D7C73D98@lxsolutions.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Archive-Number: 200007/95 julien piaser wrote: > > I'm using postgresql7.0.2 on Linux Redhat 6.1. > > It seems that any user can log in psql with any other user account > without giving any password > > i.e: if I'm logged in a shell as julien (who is a single user, not an > administrator) I just have to write: psql -U postgres mydatabase to go > into mydatabase with postgres permissions, without giving any password > (or a wrong one as well) > > Not really securised... any suggestions? look at your $PG_DATA/pg_hba.conf instead of : local all trust host all 127.0.0.1 255.255.255.255 trust try something like : local all crypt host all 127.0.0.1 255.255.255.255 crypt -- Mathieu Arnold