Firebird SQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesFirebird SQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 3rd, 2006, 10:22 PM
clivew clivew is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Jan 2006
Location: Carlsbad, CA
Posts: 817 clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level)clivew User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 47 m 46 sec
Reputation Power: 19
Privileges Problem

I am having a problem with privileges related to a procedure.

According to documentation I read, as long as the procedure
has appropriate privileges to tables it uses, the USER / ROLE
only needs EXECUTE privileges on the procedure. It does not
seem to be working for me.

In case I can get an answer without posting all the gory details
of the real code, I will start with what I hope is an accurate but simplified model.

User: AUser
Role: CUST

Table A
AWINNER varchar(1)

Procedure PROC.

GRANTS.
grant select, update on A to Procedure PROC;
grant execute on procedure PROC to CUST;
grant role CUST to AUser;

Now, when I log on as AUser with Role CUST and try and run PROC:

select is_winner FROM PROC(86)

I get the following error:
no permission for read/select access to COLUMN AWINNER;

A check of the RDB$USER_PRIVILEGES table shows that PROC has Select and Update privileges on Table A.

Thanks,
Clive.

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesFirebird SQL Development > Privileges Problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT