pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Database Privileges
3+ messages / 3 participants
[nested] [flat]

* Database Privileges
@ 2001-01-17 15:27 Markus Wigge <markus@cultcom.de>
  2001-01-17 16:21 ` Re: Database Privileges Alfonso Peniche <alfonso@iteso.mx>
  0 siblings, 1 reply; 3+ messages in thread

From: Markus Wigge @ 2001-01-17 15:27 UTC (permalink / raw)
  To: pgsql-admin

Hi PG-Admins,

  I think this question is asked more often than you'd like it to be
  so excuse me ...
  Is there any possibility to restrict database-access user based?
  When I create a user without the permission to create databases this
  user has access to all available databases on the system. He can
  create and drop database objects but cannot manipulate objects owned
  by other users.

  I don't really like this situation and I want to give exclusive right
  to databases so that just the owner of it can create and drop
  things.

-- 
bye,
 Markus                          mailto:markus@cultcom.de





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

* Re: Database Privileges
  2001-01-17 15:27 Database Privileges Markus Wigge <markus@cultcom.de>
@ 2001-01-17 16:21 ` Alfonso Peniche <alfonso@iteso.mx>
  0 siblings, 0 replies; 3+ messages in thread

From: Alfonso Peniche @ 2001-01-17 16:21 UTC (permalink / raw)
  To: ; +Cc: pgsql-admin

I think there's one possible solution, though I haven't fully tried it and
the administration can become rather bothersome and even complicated, but
here goes.

I did some testing by modifying the pg_hba.conf file, specifying which
database may be access from which IP address, and it worked, though I
haven't done any serious testing.

The reason this might work for me is that I don't have that many users to
connect directly to the database, instead I use a common user account,
which, in a multi-tier scheme, makes the connection from an App-server
(the App-server makes a remote connection to my pg-server), so I know
there's only one machine (besides mine), that would be connecting to the
database.

As I said before:
1.- If you have several connections from diferent machines this method
could become rather complicated, but it's an idea.
2.- I haven't fully tested it.

Hope this helps.

Alfonso Peniche

Markus Wigge wrote:

> Hi PG-Admins,
>
>   I think this question is asked more often than you'd like it to be
>   so excuse me ...
>   Is there any possibility to restrict database-access user based?
>   When I create a user without the permission to create databases this
>   user has access to all available databases on the system. He can
>   create and drop database objects but cannot manipulate objects owned
>   by other users.
>
>   I don't really like this situation and I want to give exclusive right
>   to databases so that just the owner of it can create and drop
>   things.
>
> --
> bye,
>  Markus                          mailto:markus@cultcom.de




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

* Re: Database Privileges
@ 2001-01-17 15:52 R D <mrk279@yahoo.com>
  0 siblings, 0 replies; 3+ messages in thread

From: R D @ 2001-01-17 15:52 UTC (permalink / raw)
  To: Markus Wigge <markus@cultcom.de>; +Cc: pgsql-admin

I would like to see some restrictions on who can or
who can not create things in a database too.
Hoping too see this soon....

Rumen

--- Markus Wigge <markus@cultcom.de> wrote:
> Hi PG-Admins,
> 
>   I think this question is asked more often than
> you'd like it to be
>   so excuse me ...
>   Is there any possibility to restrict
> database-access user based?
>   When I create a user without the permission to
> create databases this
>   user has access to all available databases on the
> system. He can
>   create and drop database objects but cannot
> manipulate objects owned
>   by other users.
> 
>   I don't really like this situation and I want to
> give exclusive right
>   to databases so that just the owner of it can
> create and drop
>   things.
> 
> -- 
> bye,
>  Markus                         
> mailto:markus@cultcom.de
> 
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/



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


end of thread, other threads:[~2001-01-17 16:21 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-17 15:27 Database Privileges Markus Wigge <markus@cultcom.de>
2001-01-17 16:21 ` Alfonso Peniche <alfonso@iteso.mx>
2001-01-17 15:52 Re: Database Privileges R D <mrk279@yahoo.com>

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