From: Gilberto Castillo <gilberto.castillo@etecsa.cu>
To: BRUNO CESAR BERNARDES <bruno.bernardes@embrapa.br>
Cc: pgsql-admin@postgresql.org
Subject: Re: Catalog permissions
Date: Tue, 31 Mar 2015 10:59:11 -0500 (GMT+5)
Message-ID: <46538.192.168.207.54.1427817551.squirrel@webmail.etecsa.cu> (raw)
In-Reply-To: <1691459001.14399050.1427812506082.JavaMail.root@embrapa.br>
References: <1691459001.14399050.1427812506082.JavaMail.root@embrapa.br>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-admin>
> Hi,
>
> I have to allow one user to use my Postgres installation in one schema of
> several. We are preparing an phpPGAdmin installation to give an remote
> access to this schema.
> The phpPDAdmin is showing the entire catalog to this user and allowing
> access only in the schema that I gave permissions to him.
> How do I do to this user can see only the schema that he has access, not
> the entire catalog.
> Is it possible?
Use:
GRANT usage on schema zzz to uuu;
Alter user uuu set default_transaction_read_only = on;
GRANT select on all tables in schema zzz to uuu;
Saludos,
Gilberto Castillo
ETECSA, La Habana, Cuba
---
This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at host imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com;, <http://www.viruslist.com;
--
Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-admin
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: gilberto.castillo@etecsa.cu, bruno.bernardes@embrapa.br
Subject: Re: Catalog permissions
In-Reply-To: <46538.192.168.207.54.1427817551.squirrel@webmail.etecsa.cu>
References: <1691459001.14399050.1427812506082.JavaMail.root@embrapa.br> <46538.192.168.207.54.1427817551.squirrel@webmail.etecsa.cu>
* 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