MySQL Forums
Forum List  »  Security

Re: Security privileges on stored procedure foibles?
Posted by: Terry Farless
Date: March 03, 2009 09:45AM

Hi Archil,

Not sure if you ever received a reply to this message but I have just encountered something VERY similar that I'll share. I have a user that accesses stored functions on my database (set up via GRANT EXECUTE...). Until yesterday, this user also had a GRANT SELECT... on one of my tables. I realized that the user no longer needed the table SELECT so I revoked that privilege, leaving the user with only EXECUTE privileges for the stored functions. This caused ALL function calls to fail with the error msg "Access denied for user..."

Oddly enough, once I added a SELECT privilege back, everything worked fine. The weird thing is that the table I gave SELECT privilege to doesn't have anything to do with the stored functions! Apparently all the user needed was SELECT to *ANY* database table and the EXECUTEs were once again working.

I hope this helps.

Terry

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Security privileges on stored procedure foibles?
3373
March 03, 2009 09:45AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.