pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mathieu Arnold <arn_mat@club-internet.fr>
To: julien piaser <jpiaser@lxsolutions.com>
Cc: pgsql-admin@postgresql.org
Subject: Re: user password problem
Date: Thu, 27 Jul 2000 10:23:24 +0200
Message-ID: <397FF17C.4C7114E0@club-internet.fr> (raw)
References: <397FECFF.D7C73D98@lxsolutions.com>



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




view thread (2+ messages)

Message-ID: <397FF17C.4C7114E0@club-internet.fr>
Permalink:  ../397FF17C.4C7114E0@club-internet.fr/
Also on:    postgresql.org/message-id/397FF17C.4C7114E0@club-internet.fr

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: arn_mat@club-internet.fr, jpiaser@lxsolutions.com
  Subject: Re: user password problem
  In-Reply-To: <397FF17C.4C7114E0@club-internet.fr>
  References: <397FECFF.D7C73D98@lxsolutions.com> <397FF17C.4C7114E0@club-internet.fr>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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