From: | Kevin Grittner <kgrittn(at)ymail(dot)com> |
---|---|
To: | kobolds <dreammes2007(at)gmail(dot)com>, "pgsql-novice(at)postgresql(dot)org" <pgsql-novice(at)postgresql(dot)org> |
Subject: | Re: [postgresql 9.2.3] schema and privileges |
Date: | 2013-03-14 19:20:46 |
Message-ID: | 1363288846.4128.YahooMailNeo@web162904.mail.bf1.yahoo.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-novice |
kobolds <dreammes2007(at)gmail(dot)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
From | Date | Subject | |
---|---|---|---|
Next Message | Christian Hammers | 2013-03-14 20:08:56 | Re: [postgresql 9.2.3] schema and privileges |
Previous Message | kobolds | 2013-03-14 18:58:47 | Re: [postgresql 9.2.3] schema and privileges |