Re: sql server 2005 security and schemas: an example please?
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Mon, 15 Dec 2008 14:13:38 -0800
robeito (robeito@xxxxxxxxxxxxxxxxxxxxxxxxx) writes:
The 3 developers will share a common schema, could this be "dbo"?
Would this be enough to allow them to
create-alter-view-select-insert-execute...?
If so, how could they log in for testing as final users? Remember that
Windows Authentication is going to be used,
I think the best is that you create three database users without login,
one per developer. You grant these database-less users CONTROL on the
dbo schema. Then you grant three developers IMPERSONATE rights on one
each of these users. This means that when the developers need to create
a procedure, they do
EXECUTE AS USER = 'devuser1'
When they test the application, they are their normal self.
I've assumed here that the developers only need to work in this
particular database. If they need to do work on server level, it
may be better to create logins that they have impersonation rights
to.
One thing you need to be careful with is that the developers do not
grant their regular Windows users any extra permission beyond what
they need as mere users.
Thinking about the future, is it convenient to create a group in the
active directory and add the 50 final users to it?
Could the permissions on the sql server be granted to that group?
Yes, you can grant permissions to a Windows group.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Links for SQL Server Books Online:
SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx
SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx
SQL 2000: http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- sql server 2005 security and schemas: an example please?
- From: robeito
- Re: sql server 2005 security and schemas: an example please?
- From: Uri Dimant
- Re: sql server 2005 security and schemas: an example please?
- From: robeito
- sql server 2005 security and schemas: an example please?
- Prev by Date: Re: sql server 2005 security and schemas: an example please?
- Next by Date: Re: sp_replwritetovarbin memory overwrite Security threat
- Previous by thread: Re: sql server 2005 security and schemas: an example please?
- Next by thread: Restore Prod DB Into Dev DB Apply Dev Security
- Index(es):
Relevant Pages
|
Loading