Re: user permissions
- From: Ola Hallengren <OlaHallengren@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 18 Mar 2008 10:48:09 -0700
Let's look at the problem again.
A user should be able to kill connections only for a specific database.
We've come up with the solution to make a stored procedure that is checking
the connections dbid, before killing the connection.
1. About the security we could do an EXECUTE AS LOGIN in the stored
procedure. We then have to grant IMPERSONATE rights.
The problem with this is that the user could easily bypass the logic in the
stored procedure, by doing an EXECUTE AS LOGIN and then kill any connection.
2. We could also create the stored procedure WITH EXECUTE AS OWNER and mark
the database as TRUSTWORTHY. You're right that you have to be very careful
with this. One solution could be to create the stored procedure in the master
database (or a custom admin datatabase) and mark that database as TRUSTWORTHY.
Ola Hallengren
http://ola.hallengren.com
"Charles Wang[MSFT]" wrote:
Yes, that is also an option for impersonation. Just one thing I want to.
point out since TRUSTWORTHY is at database level, it may impact other UDFs
and SPs who do not need an impersonation context. EXECUTE AS clause is
still the first priority here.
Best regards,
Charles Wang
Microsoft Online Community Support
=========================================================
Delighting our customers is our #1 priority. We welcome your
comments and suggestions about how we can improve the
support we provide to you. Please feel free to let my manager
know what you think of the level of service provided. You can
send feedback directly to my manager at: msdnmg@xxxxxxxxxxxxxx
=========================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
=========================================================
- Follow-Ups:
- Re: user permissions
- From: Erland Sommarskog
- Re: user permissions
- References:
- user permissions
- From: Trapulo
- Re: user permissions
- From: Uri Dimant
- Re: user permissions
- From: Trapulo
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Charles Wang[MSFT]
- Re: user permissions
- From: Ola Hallengren
- Re: user permissions
- From: Charles Wang[MSFT]
- user permissions
- Prev by Date: Re: Audit stored procedures
- Next by Date: Re: Restricting Access priviledge on SQL2000
- Previous by thread: Re: user permissions
- Next by thread: Re: user permissions
- Index(es):
Relevant Pages
|
|