![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| ||||
| ||||
|
|
Hello, Is there a way to protect a procedure to not be able to be dropped even by a user with dba authority. |
|
I am trying to secure accesses to a database through the login_procedure option. So I have it all working well, denying access to people when they don't need to be in it etc.., but I have users that need dba to create users and other dba type stuff. If one of them gets malicious I don't want them to just drop the login procedure I wrote and effectively take out all the security I just put in. Is there a way to do this(fine grain a user's dba status to only what they need dba for)? |
|
I have a feeling that people were given dba in the past just because it was easier than finding the right authority for what they needed, so is there a link somewhere to what actions you definitely need to be dba to perform? I couldn't find one browsing the documentation. |
|
Any help or pointing in the right direction? |
#3
| |||
| |||
|
|
*Stored procedures execute using the privileges of the SP creator, not the user that called them. *You then need to wrap "other dba type stuff" inside stored procedures as well. |
#4
| |||
| |||
|
|
Stored procedures execute using the privileges of the SP creator, not the user that called them. You then need to wrap "other dba type stuff" inside stored procedures as well. That's perfect, exactly what I need to do. I didn't put two and two together, the login procedure is an example of the SP running under the user it's created on I just didn't see it for the solution to the other problems. Thanks for the quick response! |
![]() |
| Thread Tools | |
| Display Modes | |
| |