pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Clayton Cottingham aka drfrog <drfrog@smartt.com>
To: pgsql-sql@postgresql.org <pgsql-sql@postgresql.org>
Subject: [OT?] permissions
Date: 18 Nov 2001 16:21:19 PST
Message-ID: <200111190032.fAJ0WsT13533@smartt.com> (raw)

im having a heck of a time here

if this is off topic please redirect me 


lemme explain

im trying to set up a 'one user one database scenario'
while still maintaining the postgres user account

here is the prob 
how do i set it up so i can do this 
iut would seem this would work in the pg_hba.conf:


local	     all					 trust	postgres
host	     all	 127.0.0.1     255.255.255.255	 trust	 postgres

but then anyone can 
psql -U postgres
and get in without password!
so i try

#local ident not avail! right?
host	     all	 127.0.0.1     255.255.255.255	 ident	 postgres

and get this
psql: No pg_hba.conf entry for host localhost, user postgres, database postgres
even though it says 'all'

is this right?
or should i have to allow access on a database per database?




thoe other problem is that

local	     mydb			     password passwd
host	     mydb	   127.0.0.1	 255.255.255.255    password passwd

would allow anyone with access to postgres  to connect to this db 

how would i strengthen this and still keep using the password ?

one would think there should be an extra option on this of user to connect 

like 

local	     mydb			     password passwd myuser
host	     mydb	   127.0.0.1	 255.255.255.255    password passwd
myuser

or is there a way to grant perms on a database? 
i could seem to do that !
so there seems to be a little problem in the clarity on how to do this
i looked over the docs and bruce's book and i could seem to get it together


any help
most appreciated


-- 
Psychiatry enables us to correct our faults by confessing our parents'
shortcomings.
		-- Laurence J. Peter, "Peter's Principles"





view thread (3+ messages)  latest in thread

Message-ID: <200111190032.fAJ0WsT13533@smartt.com>
Permalink:  ../200111190032.fAJ0WsT13533@smartt.com/
Also on:    postgresql.org/message-id/200111190032.fAJ0WsT13533@smartt.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: drfrog@smartt.com
  Subject: Re: [OT?] permissions
  In-Reply-To: <200111190032.fAJ0WsT13533@smartt.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