Received: from localhost.localdomain (postgresql.org [64.49.215.8]) by localhost (Postfix) with ESMTP id B0C42475B65 for ; Sat, 25 May 2002 00:44:28 -0400 (EDT) Received: from lucidindia.net (unknown [61.11.73.194]) by postgresql.org (Postfix) with ESMTP id 8A3DD475B0C for ; Sat, 25 May 2002 00:44:22 -0400 (EDT) Received: from a4005 ([192.168.1.18]) by lucidindia.net (8.11.6/8.11.6) with SMTP id g4P4kEY08810 for ; Sat, 25 May 2002 10:16:16 +0530 Message-ID: <003301c203a7$1a6a96d0$1201a8c0@a4005> From: "shreedhar" To: "pgsql" Subject: Problem in User Securities Date: Sat, 25 May 2002 10:16:13 +0530 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0030_01C203D5.32EC9CC0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Archive-Number: 200205/198 X-Sequence-Number: 4373 This is a multi-part message in MIME format. ------=_NextPart_000_0030_01C203D5.32EC9CC0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all, I went through pg_hba.conf, I tried to change 'local' and 'Host' permission= s. I gave permissions like local all password host all x.x.x.x x.x.x.x password if i tried to login using my database password i got an error like 'passwor= d authentication failed'. can any body tell how can i set pg_hba.conf which will restrict either 'loc= al' or 'host' not to enter with our giving password. thanks alot. with best regards, S Baskar On Mon, 2002-05-20 at 10:32, shreedhar wrote: > Hello All, >=20 > I am new to Postgres, While I was checking 'User Securities' in postgres I > got the following problem. >=20 > I created a user using 'createuser' command and gave superuser permission= s. >=20 > but while accessing database, even if we have not given '-W' password > option it is entering into database. So who knows Unix administrator > password can enter into any database if they know corresponding login name > and they work with the same permissions.. >=20 > And also i observed that even we can enter into template1 with out giving > any username or password. >=20 > I doubt there will be a way to restrict this. >=20 > Can any body help me regarding this. Look at $PGDATA/pg_hba.conf, which defines your access control. --=20 Oliver Elphick Oliver.Elphick@lfix.co.uk Isle of Wight http://www.lfix.co.uk/oliver GPG: 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839 932A 614D 4C34 3E1D 0C1C "For all that is in the world, the lust of the flesh,=20 and the lust of the eyes, and the pride of life, is not of the Father, but is of the world."=20=20=20=20=20=20=20 I John 2:17 ------=_NextPart_000_0030_01C203D5.32EC9CC0 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Hi all,
 
I went through pg_hba.conf, I tried to cha= nge=20 'local' and 'Host' permissions.
 
I gave permissions like
 
local all       &= nbsp;=20 password
host all x.x.x.x x.x.x.x password
 
if i tried to login using my database pass= word i=20 got an error like 'password authentication failed'.
 
can any body tell how can i set pg_hba.con= f which=20 will restrict either 'local' or 'host' not to enter with our giving=20 password.
 
thanks alot.
 
with best regards,
S Baskar
On Mon, 2002-05-20 at 10:32, shreedhar=20 wrote:
> Hello All,
>
> I am new to Postgres, While I wa= s=20 checking 'User Securities' in postgres I
> got the following=20 problem.
>
> I created a user using 'createuser' command and g= ave=20 superuser permissions.
>
> but while accessing database, even = if we=20 have not given   '-W' password
> option it is entering into= =20 database. So who knows Unix administrator
> password can enter into a= ny=20 database if they know corresponding login name
> and they work with t= he=20 same permissions..
>
> And also i observed that even we can en= ter=20 into template1 with out giving
> any username or password.
>=20
> I doubt there will be a way to restrict this.
>
> Can= any=20 body help me regarding this.
 
Look at $PGDATA/pg_hba.conf, which defines= your=20 access control.
 
--
Oliver=20 Elphick           &n= bsp;            = ;       =20 Oliver.Elphick@lfix.co.uk<= BR>Isle=20 of=20 Wight           &nbs= p;            &= nbsp;    =20 http://www.lfix.co.uk/oliverGPG:=20 1024D/3E1D0C1C: CA12 09E0 E8D5 8870 5839  932A 614D 4C34 3E1D=20 0C1C
 
     "For all that is = in the=20 world, the lust of the flesh,
      and the lu= st of=20 the eyes, and the pride of life, is
      not o= f the=20 Father, but is of the world."      =20
            = ;            &n= bsp;   =20 I John 2:17
------=_NextPart_000_0030_01C203D5.32EC9CC0--