pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kevin Schachter <kevin@kevinity.com>
To: pgsql-admin@postgresql.org
Subject: Granting Permissions to User To Access Database
Date: Sat, 6 Jan 2001 14:42:28 -0600
Message-ID: <001101c07821$323a2860$0300a8c0@kevin> (raw)

I recently installed Postgres on my server to rid of the horrible
limitations of Mysql. However I am having some trouble setting up
permissions as they are in MySQL.

In MySQL you can grant a user select permissions to all tables in a database
with the command "GRANT select on db.* to .....". Is there a similar way to
accomplish this in Postgres? Reading up on GRANT I see that it only works
for individual tables and not a full database.

As well, how can I restrict a user to only one database. In pg_hba.conf
there is nothing that specifies the user name. I can grant access to the
database to all users on an ip, but I can't grant it to only one user.

Thanks in advance,

Kevin




view thread (8+ messages)  latest in thread

Message-ID: <001101c07821$323a2860$0300a8c0@kevin>
Permalink:  ../001101c07821$323a2860$0300a8c0@kevin/
Also on:    postgresql.org/message-id/001101c07821$323a2860$0300a8c0@kevin

 · 

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: kevin@kevinity.com
  Subject: Re: Granting Permissions to User To Access Database
  In-Reply-To: <001101c07821$323a2860$0300a8c0@kevin>
  References: <001101c07821$323a2860$0300a8c0@kevin>

* 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