Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 89D72650E91 for ; Fri, 27 Jun 2008 15:31:16 -0300 (ADT) Received: from postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 92182-01 for ; Fri, 27 Jun 2008 15:31:10 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by postgresql.org (Postfix) with ESMTP id 7AC54650E7F for ; Fri, 27 Jun 2008 15:31:11 -0300 (ADT) Received: by wr-out-0506.google.com with SMTP id c49so472683wra.19 for ; Fri, 27 Jun 2008 11:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type:references; bh=ZcFvVbk/6cZXBX8HR5Z/JWtvrne/xFDp0E2uDK6RFF4=; b=BJSEEBYf3Sefofnk6Hozr4BJ+oxTkFMxHsfm+jexD/awvvwOF30koflN0z9YuWNGYi mnHJg1bUl3n4V+aRLJXE2VJjdG4+FD0EWxOlaEUZfaa7zLdmxNOriZau6NDH67tpp4wl KR684e6nMptRopDON/u+yQFId8lkgdP11K/MM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:references; b=M36cJXmkcePr1V//beQ+1ij3c/eugEKj0VLXbY5RnuEN0xDb8ghnttP25+FJlY3dSM nhpDKoEdR/fhuj9MBZrY5IvFY+iyGqETqHvmu18TJ+Vs3t4pDWixVT658i5+L772FQCS +/UaR1jerL6BOwv3D15AcX4H9asAPTlYkRSHc= Received: by 10.100.164.10 with SMTP id m10mr2097197ane.108.1214591470428; Fri, 27 Jun 2008 11:31:10 -0700 (PDT) Received: by 10.101.69.7 with HTTP; Fri, 27 Jun 2008 11:31:10 -0700 (PDT) Message-ID: Date: Fri, 27 Jun 2008 20:31:10 +0200 From: "Domingo Alvarez Duarte" To: lennin.caro@yahoo.com Subject: Re: Extended security/restriction to any role with login access Cc: "Carol Walter" , pgsql-admin@postgresql.org In-Reply-To: <201491.72237.qm@web59507.mail.ac4.yahoo.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_20619_23801066.1214591470451" References: <201491.72237.qm@web59507.mail.ac4.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.452 tagged_above=0 required=5 tests=AWL=-0.451, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, URIBL_RHS_DOB=0.901 X-Spam-Level: X-Archive-Number: 200806/247 X-Sequence-Number: 29585 ------=_Part_20619_23801066.1214591470451 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How can I change that ? I mean make the catalog of tables, function and roles private and only accessible to granted users ? Someon mentioned once to make changes in template1, wich changes will be nneded ? In case this is possible. Thanks for any help/sugestion ! On Fri, Jun 27, 2008 at 5:12 PM, Lennin Caro wrote: > > Ok... > > the catalog of tables, function and roles are public. Pgadmin use the > catalog to create the tree of databases, function and roles. The user can > see this but cant change this. In oracle the catalog of user, tables, > function are public > > --- On *Fri, 6/27/08, Domingo Alvarez Duarte * wrote: > > From: Domingo Alvarez Duarte > Subject: Re: [ADMIN] Extended security/restriction to any role with login > access > To: lennin.caro@yahoo.com > Cc: "Carol Walter" , pgsql-admin@postgresql.org > Date: Friday, June 27, 2008, 2:35 PM > > > Look this isn't the point I know what can be done with pg_hba.conf > > The main point is: > > When I create a postgresql user and grant to it only access to part of a > database (let's say one view). I'm expecting that the server will honor it. > But right now postgresql server isn't. > > This is the reason I'm writing here and tried too hackers list but no one > seems to understand the importance of this point. > > Maybe it's my fault of knowledge but till now no one showed me how to get > the expected result, people try to tell me how to use firewall, change the > way of build my application, they don't understand the point. I'll repeat it > again: > > > When I create a postgresql user and grant to it only access to part of a > database (let's say one view). I'm expecting that the server will honor it. > But right now postgresql server isn't. > > Actually any user with login access can see all > databases/roles/functions/table-definitions/triggers. What I thinks isn't > correct. > > I'll apreciate any solution to this problem. > > On Fri, Jun 27, 2008 at 3:44 PM, Lennin Caro > wrote: > >> ok, let try this ..... >> >> open the pg_hba.conf and check the line >> >> host all all 127.0.0.1/32 trust >> >> and change to >> >> host all all 127.0.0.1/32 password >> >> >> >> --- On *Thu, 6/26/08, Domingo Alvarez Duarte * wrote: >> >> From: Domingo Alvarez Duarte >> Subject: Re: [ADMIN] Extended security/restriction to any role with login >> access >> To: lennin.caro@yahoo.com >> Cc: "Carol Walter" , pgsql-admin@postgresql.org >> Date: Thursday, June 26, 2008, 9:45 PM >> >> >> I did the following: >> -Connect as superuser postgres with pgadmin and create a user -> noaccess >> CREATE ROLE noaccess LOGIN >> NOSUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE; >> >> -Disconnect from the server >> -Connect to the server with user 'noaccess' through pgadmin3, and I can >> see all databases/functions/schemas/roles. >> >> What am I missing ? >> >> On Thu, Jun 26, 2008 at 8:44 PM, Lennin Caro >> wrote: >> >>> hello... >>> >>> you can restric acces from all the databases in your cluster. When you >>> use pgadmin3 this show all the databases but if you dont have access to the >>> databases you cant see the struct of this. >>> >>> check waht user use pgadmin3 for connect to databases >>> >>> create groups and add privileges to the group later add the users to the >>> group >>> >>> >>> >> >> > > ------=_Part_20619_23801066.1214591470451 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline How can I change that ?
I mean make the catalog of tables, function and roles private and only accessible to granted users ?

Someon mentioned once to make changes in template1, wich changes will be nneded ? In case this is possible.

Thanks for any help/sugestion !

On Fri, Jun 27, 2008 at 5:12 PM, Lennin Caro <lennin.caro@yahoo.com> wrote:

Ok...

the catalog of tables, function and roles are public. Pgadmin use the catalog to create the tree of databases, function and roles. The user can see this but cant change this. In oracle the catalog of user, tables, function are public


--- On Fri, 6/27/08, Domingo Alvarez Duarte <mingodad@gmail.com> wrote:
From: Domingo Alvarez Duarte <mingodad@gmail.com>
Subject: Re: [ADMIN] Extended security/restriction to any role with login access
To: lennin.caro@yahoo.com
Cc: "Carol Walter" <walterc@indiana.edu>, pgsql-admin@postgresql.org
Date: Friday, June 27, 2008, 2:35 PM


Look this isn't the point I know what can be done with pg_hba.conf

The main point is:

When I create a postgresql user and grant to it only access to part of a database (let's say one view). I'm expecting that the server will honor it. But right now postgresql server isn't.

This is the reason I'm writing here and tried too hackers list but no one seems to understand the importance of this point.

Maybe it's my fault of knowledge but till now no one showed me how to get the expected result, people try to tell me how to use firewall, change the way of build my application, they don't understand the point. I'll repeat it again:


When I create a postgresql user and grant to it only access to part of a database (let's say one view). I'm expecting that the server will honor it. But right now postgresql server isn't.

Actually any user with login access can see all databases/roles/functions/table-definitions/triggers. What I thinks isn't correct.

I'll apreciate any solution to this problem.

On Fri, Jun 27, 2008 at 3:44 PM, Lennin Caro <lennin.caro@yahoo.com> wrote:
ok, let try this .....

open the pg_hba.conf and check the line

host    all         all         127.0.0.1/32          trust

and change to

host    all         all         127.0.0.1/32          password



--- On Thu, 6/26/08, Domingo Alvarez Duarte <mingodad@gmail.com> wrote:
From: Domingo Alvarez Duarte <mingodad@gmail.com>

Subject: Re: [ADMIN] Extended security/restriction to any role with login access
To: lennin.caro@yahoo.com
Cc: "Carol Walter" <walterc@indiana.edu>, pgsql-admin@postgresql.org
Date: Thursday, June 26, 2008, 9:45 PM


I did the following:
-Connect as superuser postgres with pgadmin and create a user -> noaccess
CREATE ROLE noaccess LOGIN
  NOSUPERUSER NOINHERIT NOCREATEDB NOCREATEROLE;

-Disconnect from the server
-Connect to the server with user 'noaccess' through pgadmin3, and I can see all databases/functions/schemas/roles.

What am I missing ?

On Thu, Jun 26, 2008 at 8:44 PM, Lennin Caro <lennin.caro@yahoo.com> wrote:
hello...

you can restric acces from all the databases in your cluster. When you use pgadmin3 this show all the databases but if you dont have access to the databases you cant see the struct of this.

check waht user use pgadmin3 for connect to databases

create groups and add privileges to the group later add the users to the group







------=_Part_20619_23801066.1214591470451--