Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Restricting users to certain databases

0 views
Skip to first unread message

undbund

unread,
Jun 13, 2009, 9:38:32 PM6/13/09
to
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

Ben Finney

unread,
Jun 14, 2009, 2:15:38 AM6/14/09
to
undbund <und...@gmail.com> writes:

> 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

Andreas Kretschmer

unread,
Jun 15, 2009, 1:34:48 AM6/15/09
to
undbund <und...@gmail.com> wrote:
> 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

0 new messages