pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Problem in User Securities
3+ messages / 2 participants
[nested] [flat]

* Problem in User Securities
@ 2002-05-20 09:32  shreedhar <shreedhar@lucidindia.net>
  0 siblings, 1 reply; 3+ messages in thread

From: shreedhar @ 2002-05-20 09:32 UTC (permalink / raw)
  To: pgsql-admin

Hello All,

I am new to Postgres, While I was checking 'User Securities' in postgres I
got the following problem.

I created a user using 'createuser' command and gave superuser permissions.

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..

And also i observed that even we can enter into template1 with out giving
any username or password.

I doubt there will be a way to restrict this.

Can any body help me regarding this.

Thanks alot,

With best Regards
bhaskararaju





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Problem in User Securities
@ 2002-05-20 13:09  Joel Burton <joel@joelburton.com>
  parent: shreedhar <shreedhar@lucidindia.net>
  0 siblings, 0 replies; 3+ messages in thread

From: Joel Burton @ 2002-05-20 13:09 UTC (permalink / raw)
  To: shreedhar <shreedhar@lucidindia.net>; pgsql-admin

The default security setup in PG is to allow all connections from localhost,
w/o password. This should be changed. You'll find this in your $PGDATA
directory, in the file pg_hba.conf.

- J.

Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Knowledge Management & Technology Consultant

> -----Original Message-----
> From: pgsql-admin-owner@postgresql.org
> [mailto:pgsql-admin-owner@postgresql.org]On Behalf Of shreedhar
> Sent: Monday, May 20, 2002 5:33 AM
> To: PostgreSQL
> Subject: [ADMIN] Problem in User Securities
>
>
> Hello All,
>
> I am new to Postgres, While I was checking 'User Securities' in postgres I
> got the following problem.
>
> I created a user using 'createuser' command and gave superuser
> permissions.
>
> 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..
>
> And also i observed that even we can enter into template1 with out giving
> any username or password.
>
> I doubt there will be a way to restrict this.
>
> Can any body help me regarding this.
>
> Thanks alot,
>
> With best Regards
> bhaskararaju
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Problem in User Securities
@ 2002-05-25 04:46  shreedhar <shreedhar@lucidindia.net>
  0 siblings, 0 replies; 3+ messages in thread

From: shreedhar @ 2002-05-25 04:46 UTC (permalink / raw)
  To: pgsql-admin

Hi all,

I went through pg_hba.conf, I tried to change 'local' and 'Host' permissions.

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 'password authentication failed'.

can any body tell how can i set pg_hba.conf which will restrict either 'local' 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,
> 
> I am new to Postgres, While I was checking 'User Securities' in postgres I
> got the following problem.
> 
> I created a user using 'createuser' command and gave superuser permissions.
> 
> 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..
> 
> And also i observed that even we can enter into template1 with out giving
> any username or password.
> 
> I doubt there will be a way to restrict this.
> 
> Can any body help me regarding this.

Look at $PGDATA/pg_hba.conf, which defines your access control.

-- 
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, 
      and the lust of the eyes, and the pride of life, is
      not of the Father, but is of the world."       
                             I John 2:17

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-05-25 04:46 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-05-20 09:32 Problem in User Securities shreedhar <shreedhar@lucidindia.net>
2002-05-20 13:09 ` Joel Burton <joel@joelburton.com>
2002-05-25 04:46 Problem in User Securities shreedhar <shreedhar@lucidindia.net>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox