dbTalk Databases Forums  

Restricting users to certain databases

comp.databases.postgresql comp.databases.postgresql


Discuss Restricting users to certain databases in the comp.databases.postgresql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
undbund
 
Posts: n/a

Default Restricting users to certain databases - 06-13-2009 , 08:38 PM






Hi, can you please guide me as to how can I create users that can only
log on to certain databases.

Thanks for all your help,
Undbund

Reply With Quote
  #2  
Old   
Ben Finney
 
Posts: n/a

Default Re: Restricting users to certain databases - 06-14-2009 , 01:15 AM






undbund <undbund (AT) gmail (DOT) com> writes:

Quote:
Hi, can you please guide me as to how can I create users that can only
log on to certain databases.
Privileges are assigned by a combination of (permission, object, role).
Use the ‘GRANT’ command to give, and the ‘REVOKE’ command to take away,
the permissions you want each account to have to each object.
<URL:http://www.postgresql.org/docs/current/static/sql-grant.html>

--
\ “You can't have everything; where would you put it?” —Steven |
`\ Wright |
_o__) |
Ben Finney

Reply With Quote
  #3  
Old   
Andreas Kretschmer
 
Posts: n/a

Default Re: Restricting users to certain databases - 06-15-2009 , 12:34 AM



undbund <undbund (AT) gmail (DOT) com> wrote:
Quote:
Hi, can you please guide me as to how can I create users that can only
log on to certain databases.
Read (and edit) your pg_hba.conf, it is well documented.


Andreas
--
Andreas Kretschmer
Linux - weil ich es mir wert bin!
GnuPG-ID 0x3FFF606C http://wwwkeys.de.pgp.net

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.