pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
user password problem
2+ messages / 2 participants
[nested] [flat]

* user password problem
@ 2000-07-27 08:04  julien piaser <jpiaser@lxsolutions.com>
  0 siblings, 1 reply; 2+ messages in thread

From: julien piaser @ 2000-07-27 08:04 UTC (permalink / raw)
  To: pgsql-admin

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?

regards

J.Piaser




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

* Re: user password problem
@ 2000-07-27 08:23  Mathieu Arnold <arn_mat@club-internet.fr>
  parent: julien piaser <jpiaser@lxsolutions.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Mathieu Arnold @ 2000-07-27 08:23 UTC (permalink / raw)
  To: julien piaser <jpiaser@lxsolutions.com>; +Cc: pgsql-admin



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




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


end of thread, other threads:[~2000-07-27 08:23 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2000-07-27 08:04 user password problem julien piaser <jpiaser@lxsolutions.com>
2000-07-27 08:23 ` Mathieu Arnold <arn_mat@club-internet.fr>

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