Re: Disable TRUST authentication mode - Mailing list pgsql-admin

From Tom Lane
Subject Re: Disable TRUST authentication mode
Date
Msg-id 22060.1331396430@sss.pgh.pa.us
Whole thread Raw
In response to Re: Disable TRUST authentication mode  (Jan Lentfer <Jan.Lentfer@web.de>)
List pgsql-admin
Jan Lentfer <Jan.Lentfer@web.de> writes:
> Am 10.03.2012 16:21, schrieb c k:
>> It we can disable the TRUST mode then every user have to login with
>> password and every fraud user have to know the password (at least) of
>> the user. It is not the case that users from other departments share
>> their passwords, but fraud users just bypasses the need to know the
>> password.

> If they can alter pg_hba.conf they can almost certainly also change/add
> users, alter passwords, etc, etc... So from a security perspective it
> doesn't buy you much.

Somebody who has the ability to rewrite pg_hba.conf could also go in and
physically alter the database files -- those are in the same directory
tree, with the same ownership and permissions, as pg_hba.conf.  If you
cannot trust people who have that level of access, you have a problem
that software cannot solve for you.  You need to rethink who has got
access to the machine running the database server, or at least who has
got root on it.

            regards, tom lane

pgsql-admin by date:

Previous
From: Jan Lentfer
Date:
Subject: Re: Disable TRUST authentication mode
Next
From: c k
Date:
Subject: Re: Disable TRUST authentication mode