Question about schema-level permissions

Поиск
Список
Период
Сортировка
Искать

Question about schema-level permissions

От:
Mike Christensen <mike@kitchenpc.com>
Дата:
I've created a schema called Indexer and a user called Indexer.  I
then grant Indexer ALL on said schema:

GRANT ALL ON SCHEMA Indexer TO "Indexer";

Next, I attempt to INSERT into Indexer.ParseErrors, I get a permission
denied error message.  However, if I specifically grant Indexer INSERT
permissions:

GRANT INSERT ON Indexer.ParseErrors TO "Indexer";

Then everything works.

Am I missing something?  Doesn't GRANT ALL mean that user can do
anything they want with objects in that schema, including inserts?
Thanks!

Mike

Re: Question about schema-level permissions

От:
Christophe Pettus <xof@thebuild.com>
Дата:

On May 10, 2012, at 9:16 PM, Mike Christensen wrote:
> Am I missing something?  Doesn't GRANT ALL mean that user can do
> anything they want with objects in that schema, including inserts?

No, it means that user has all privileges on *schema itself*; the objects inside of it have their own permissions.  What you are looking for is:

	GRANT ALL ON ALL TABLES IN SCHEMA Indexer TO Indexer;

--
-- Christophe Pettus
   xof@thebuild.com

Re: Question about schema-level permissions

От:
Mike Christensen <mike@kitchenpc.com>
Дата:
Excellent, thanks so much!

Mike

On Thu, May 10, 2012 at 9:38 PM, Christophe Pettus  wrote:
>
> On May 10, 2012, at 9:16 PM, Mike Christensen wrote:
>> Am I missing something?  Doesn't GRANT ALL mean that user can do
>> anything they want with objects in that schema, including inserts?
>
> No, it means that user has all privileges on *schema itself*; the objects inside of it have their own permissions.  What you are looking for is:
>
>        GRANT ALL ON ALL TABLES IN SCHEMA Indexer TO Indexer;
>
> --
> -- Christophe Pettus
>   xof@thebuild.com
>
FAQ