Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd25R-00023X-SO for pgsql-admin@arkaria.postgresql.org; Tue, 31 Mar 2015 19:44:33 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1Yd25R-0003CN-BM for pgsql-admin@arkaria.postgresql.org; Tue, 31 Mar 2015 19:44:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1Yd25P-0003CG-TV for pgsql-admin@postgresql.org; Tue, 31 Mar 2015 19:44:31 +0000 Received: from mamona.sede.embrapa.br ([200.202.168.1]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1Yd25L-0004Fm-55 for pgsql-admin@postgresql.org; Tue, 31 Mar 2015 19:44:30 +0000 Received: by mamona.sede.embrapa.br (Postfix, from userid 496) id D3B081C2752; Tue, 31 Mar 2015 16:44:25 -0300 (BRT) Received: from zmta03.sede.embrapa.br (zmta03.sede.embrapa.br [10.170.20.159]) by mamona.sede.embrapa.br (Postfix) with ESMTP id 1C33F1C2746; Tue, 31 Mar 2015 16:44:24 -0300 (BRT) Received: from localhost (localhost.localdomain [127.0.0.1]) by zmta03.sede.embrapa.br (Postfix) with ESMTP id 67E61400672; Tue, 31 Mar 2015 16:44:24 -0300 (BRT) X-Virus-Scanned: amavisd-new at zmta03.sede.embrapa.br Received: from zmta03.sede.embrapa.br ([127.0.0.1]) by localhost (zmta03.sede.embrapa.br [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id N0+GMbrsNYuU; Tue, 31 Mar 2015 16:44:20 -0300 (BRT) Received: from zmbox03.sede.embrapa.br (zmbox03.sede.embrapa.br [10.170.20.185]) by zmta03.sede.embrapa.br (Postfix) with ESMTP id 12641400631; Tue, 31 Mar 2015 16:44:04 -0300 (BRT) Date: Tue, 31 Mar 2015 16:44:04 -0300 (BRT) From: BRUNO CESAR BERNARDES To: gilberto castillo Cc: pgsql-admin@postgresql.org Message-ID: <332364131.14649564.1427831044036.JavaMail.root@embrapa.br> In-Reply-To: <46538.192.168.207.54.1427817551.squirrel@webmail.etecsa.cu> Subject: Re: Catalog permissions MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_14649563_616141995.1427831044035" X-Originating-IP: [200.202.168.177] X-Mailer: Zimbra 7.2.4_GA_2900 (ZimbraWebClient - FF3.0 (Linux)/7.2.4_GA_2900) X-Copyrighted-Material: Please visit http://www.embrapa.br X-Pg-Spam-Score: -1.9 (-) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-admin Precedence: bulk Sender: pgsql-admin-owner@postgresql.org ------=_Part_14649563_616141995.1427831044035 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Thanks Gilberto,=20 The problem still the same.=20 The user is allowed to see the entire installation catalog, all databases, = all schemas, etc. Of course, he is allowed to see data only in the schema t= hat I gave this permission.=20 The ideia is to be shoed to him only the datbase end schema that he has per= mission.=20 I applied the command "Alter user myuser set default_transaction_read_only = =3D on;" to this user . The others were already set.=20 Saludos,=20 Bruno=20 ----- Mensagem original ----- De: "Gilberto Castillo" =20 Para: "BRUNO CESAR BERNARDES" =20 Cc: pgsql-admin@postgresql.org=20 Enviadas: Ter=E7a-feira, 31 de mar=E7o de 2015 12:59:11=20 Assunto: Re: [ADMIN] Catalog permissions=20 > Hi,=20 >=20 > I have to allow one user to use my Postgres installation in one schema of= =20 > several. We are preparing an phpPGAdmin installation to give an remote=20 > access to this schema.=20 > The phpPDAdmin is showing the entire catalog to this user and allowing=20 > access only in the schema that I gave permissions to him.=20 > How do I do to this user can see only the schema that he has access, not= =20 > the entire catalog.=20 > Is it possible?=20 Use:=20 GRANT usage on schema zzz to uuu;=20 Alter user uuu set default_transaction_read_only =3D on;=20 GRANT select on all tables in schema zzz to uuu;=20 Saludos,=20 Gilberto Castillo=20 ETECSA, La Habana, Cuba=20 ---=20 This message was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running= at host imx3.etecsa.cu=20 Visit our web-site: , = =20 --=20 Sent via pgsql-admin mailing list (pgsql-admin@postgresql.org)=20 To make changes to your subscription:=20 http://www.postgresql.org/mailpref/pgsql-admin=20 -=20 =0A________________________________________________________________________= ____=0AAviso de confidencialidade =0A=0AEsta mensagem da Empresa Brasileira= de Pesquisa Agropecuaria (Embrapa),=0Aempresa publica federal regida pel= o disposto na Lei Federal no. 5.851, de=0A7 de dezembro de 1972, e envia= da exclusivamente a seu destinatario e pode=0Aconter informacoes confidenc= iais, protegidas por sigilo profissional. Sua=0Autilizacao desautorizada = e ilegal e sujeita o infrator as penas da lei. Se=0Avoce a recebeu indevid= amente, queira, por gentileza, reenvia-la ao emitente,=0Aesclarecendo o equi= voco.=0A=0AConfidentiality note=0A=0AThis message from Empresa Brasileira d= e Pesquisa Agropecuaria (Embrapa), a=0Agovernment company established und= er Brazilian law (5.851/72), is directed=0Aexclusively to its addressee = and may contain confidential data, protected=0Aunder professional secrecy= rules. Its unauthorized use is illegal and may=0Asubject the transgresso= r to the law's penalties. If you are not the addressee,=0Aplease send it bac= k, elucidating the failure.=0A=0A=0A ------=_Part_14649563_616141995.1427831044035 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable <= div style=3D'font-family: arial,helvetica,sans-serif; font-size: 12pt; colo= r: #000000'>Thanks Gilberto,

    The problem still th= e same.
    The user is allowed to see the entire instal= lation catalog, all databases, all schemas, etc. Of course, he is allowed t= o see data only in the schema that I gave this permission.
   = The ideia is to be shoed to him only the datbase end schema that he has pe= rmission. 
    I applied the command  "Alter u= ser myuser set default_transaction_read_only =3D on;"  to this user . = The others were already set.

Saludos,
Bruno


De: = "Gilberto Castillo" <gilberto.castillo@etecsa.cu>
Para: "BRUNO CESAR BERNARDES" <bruno.bernardes@embrapa.br>
Cc: p= gsql-admin@postgresql.org
Enviadas: Ter=E7a-feira, 31 de mar=E7o = de 2015 12:59:11
Assunto: Re: [ADMIN] Catalog permissions

=

> Hi,
>
> I have to allow one user to use my Postgre= s installation in one schema of
> several. We are preparing an phpPGA= dmin installation to give an remote
> access to this schema.
> = The phpPDAdmin is showing the entire catalog to this user and allowing
&= gt; access only in the schema that I gave permissions to him.
> How d= o 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 = =3D on;
GRANT select on all tables in schema zzz to uuu;


Salu= dos,
Gilberto Castillo
ETECSA, La Habana, Cuba

---
This me= ssage was processed by Kaspersky Mail Gateway 5.6.28/RELEASE running at hos= t imx3.etecsa.cu
Visit our web-site: <http://www.kaspersky.com>, &= lt;http://www.viruslist.com>


--
Sent via pgsql-admin mail= ing list (pgsql-admin@postgresql.org)
To make changes to your subscripti= on:
http://www.postgresql.org/mailpref/pgsql-admin



= -


= =0A=0A

=0A
________________= ____________________________________________________________=0A
Aviso de = confidencialidade.=0A

=0AEsta mensagem da Empresa Brasileira de Pesq= uisa Agropecuária (Embrapa),=0Aempresa pùblica federal regi= da pelo disposto na Lei Federal no. 5.851, de=0A7 de dezembro de 1972, &= eacute; enviada exclusivamente a seu destinatário e pode=0Aconter i= nformações confidenciais, protegidas por sigilo profissional= . Sua=0Autilização desautorizada é ilegal e sujeita o= infrator às penas da lei. Se=0Avocê a recebeu indevidamente, = queira, por gentileza, reenviá-la ao emitente,=0Aesclarecendo o equ&i= acute;voco.=0A

=0AConfidentiality note=0A

=0AThis message from= Empresa Brasileira de Pesquisa Agropecuária (Embrapa), a=0Agovern= ment company established under Brazilian law (5.851/72), is directed=0Aex= clusively to its addressee and may contain confidential data, protected= =0Aunder professional secrecy rules. Its unauthorized use is illegal and = may=0Asubject the transgressor to the law's penalties. If you are not the a= ddressee,=0Aplease send it back, elucidating the failure.=0A
=0A
= =0A=0A=0A
= ------=_Part_14649563_616141995.1427831044035--