pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Graham Vickrage <graham@digitalplanit.com>
To: pgsql-admin@postgresql.org
Subject: Still confusion with security...
Date: Mon, 6 Mar 2000 18:21:00 -0000
Message-ID: <NDBBJABDILOPAOOMFJHOCENPCAAA.graham@digitalplanit.com> (raw)

I am still a little confused as to how the security works in postgres.

I am doing the following: -

1) Creating a unix user 'dpdba' who will effectively be the DBA for the
database
2) Create the postgres user $createuser dpdba (specifying the same unix ID
and all privliges)
3) Change user to dpdba '$su dpdba' and create the database '$createdb
dpstatistics'
4) Now, the bit that confuses me is the setup of the pg_hba.conf file. On
our test machine which is running the same version of both OS and DB, the
password authentification works fine. The entry in the pg_hba.conf for both
machines looks like this: -

local        beatfreak                                  password
local        dpstatistics                               password
host         all         127.0.0.1     255.255.255.255  password

I am trying to gain access to the database via the interactive monitor (I
assume I am therefore accessing the data as 'local' despite it being a
remote server) and I can get into any database as the postgres superuser (I
can also get in as anyone if I change the setting to trust). The problem
occurs when I try to connect using the 'dpdba' login, I have changed the
password in pg_shadow and still it gives me the same error: -

Connection to database 'dpstatistics' failed.
Password authentication failed for user 'dpdba'

The only differences that I can tell between test and production DB's is the
unix profiles. For some reason the command line in psql acts as though you
are typing in a user name and password. i.e. ^H when you press delete. Could
this possibly have anything to do with it??? The only other difference is
that the postgres files on test are owned by postgres:postgres and on
production are postgres:users.

I have tried all the combos I can think of and have drawn a blank any ideas
would be greatfully recieved.

Cheers
Graham





Message-ID: <NDBBJABDILOPAOOMFJHOCENPCAAA.graham@digitalplanit.com>
Permalink:  ../NDBBJABDILOPAOOMFJHOCENPCAAA.graham@digitalplanit.com/
Also on:    postgresql.org/message-id/NDBBJABDILOPAOOMFJHOCENPCAAA.graham@digitalplanit.com

 · 

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: graham@digitalplanit.com
  Subject: Re: Still confusion with security...
  In-Reply-To: <NDBBJABDILOPAOOMFJHOCENPCAAA.graham@digitalplanit.com>
  References: <NDBBJABDILOPAOOMFJHOCENPCAAA.graham@digitalplanit.com>

* 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