Re: [postgresql 9.2.3] schema and privileges - Mailing list pgsql-novice

From Kevin Grittner
Subject Re: [postgresql 9.2.3] schema and privileges
Date
Msg-id 1363288846.4128.YahooMailNeo@web162904.mail.bf1.yahoo.com
Whole thread Raw
In response to Re: [postgresql 9.2.3] schema and privileges  (kobolds <dreammes2007@gmail.com>)
List pgsql-novice
kobolds <dreammes2007@gmail.com> wrote:

> "By default, users cannot access any objects in schemas they do
> not own. To allow that, the owner of the schema must grant the
> USAGE privilege on the schema. To allow users to make use of the
> objects in the schema, additional privileges might need to be
> granted, as appropriate for the object."
>
> but i already did grant all privileges on schema sh1 to user1;
>
> so why user1 still unable to  access.

Maybe a metaphor would help.  By granting access to the database,
you have given the user access to the building.  Picture a building
with one key for the front door, a different key for each floor,
and a different key for each room on each floor.  By granting
access to the schema you have given the user a key to the floor.
Granting access to the individual objects in the schema is like
giving them keys to the individual rooms on the floor.  You haven't
done that yet.

--
Kevin Grittner
EnterpriseDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


pgsql-novice by date:

Previous
From: kobolds
Date:
Subject: Re: [postgresql 9.2.3] schema and privileges
Next
From: Christian Hammers
Date:
Subject: Re: [postgresql 9.2.3] schema and privileges