Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase 12»»

SA to be denied Access Expand / Collapse
Author
Message
Posted Tuesday, December 18, 2001 9:59 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, December 18, 2001 12:00 AM
Points: 1, Visits: 1
I want to create a database whose owner will be a login having the "Database Creators" Server Role. Take for example the database created is named "market" created by the login "amit" so invariably the dbo for "market" is "amit".
No other user is granted access to this database. The DB is created in Enterprise Manager. Now I want to restrict the sa of the SQL Server from gaining access to this DB.
Can this be done. Is it mandatory that the sa be treated as the "GOD" having access to all the databases in the SQL Server he is the administrator of.


Regards,
Amit Prabhu



Regards,
Amit Prabhu
Post #1978
Posted Wednesday, December 19, 2001 1:17 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, April 14, 2014 2:50 AM
Points: 739, Visits: 203
Accounts with SA rights have access to the lot. I don't know of a way to restrict sa access




Steven
Post #25261
Posted Wednesday, December 19, 2001 2:57 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, November 29, 2006 7:59 AM
Points: 75, Visits: 1
Hi Amit,

sa is a member of the SYSADMIN role and this can't be changed. Can you clarify a bit more what you're trying to do. You see, the "owner" will always be a login that is a member of "dbo" database role while the "database creator" is a separate issue. What is the need to restrict the sa from the database

Regards,
DeltaKilo




Post #25262
Posted Wednesday, December 19, 2001 9:55 AM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 6:29 PM
Points: 32,834, Visits: 14,975
Can't restrict sa, similar to the inability of restricting the domain admin. what is missing, however, is the auditing ability (or the take ownership tracking) in SQL. I've seen this quite a bit and I hope it gets corrected, in disallowing sysadmins to "read" all data by default.


Steve Jones
steve@dkranch.net







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #25263
Posted Thursday, December 20, 2001 1:35 AM
Right there with Babe

Right there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with BabeRight there with Babe

Group: General Forum Members
Last Login: Monday, April 14, 2014 2:50 AM
Points: 739, Visits: 203
You can sort of restrict 'domain admins' by removing the builtin/admin for the admin group (not exactly advisable) as this can cause problems with full text indexing etc.




Steven
Post #25264
Posted Thursday, December 20, 2001 12:32 PM


SSC-Dedicated

SSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-DedicatedSSC-Dedicated

Group: Administrators
Last Login: Today @ 6:29 PM
Points: 32,834, Visits: 14,975
There are a few articles on removing admins from SQL. Not too bad in SS2K.

I was more referring to restricting admins on the network,not SQL.

Steve Jones
steve@dkranch.net







Follow me on Twitter: @way0utwest

Forum Etiquette: How to post data/code on a forum to get the best help
Post #25265
Posted Thursday, January 03, 2002 1:36 PM
Mr or Mrs. 500

Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500Mr or Mrs. 500

Group: General Forum Members
Last Login: Saturday, August 03, 2013 4:08 PM
Points: 536, Visits: 144
sa is the owner of all the objects.But when the user say amit, if he creates the tables you can see him under the owner column in the EM.So, instead of dbo you can see him as the owner of those tables,but you cannot restrict the sa from accessing those objects.
As others have mentioned you can simply restrict buitin\admins accounts from accessing the objects by removing them.




Post #25266
Posted Wednesday, January 09, 2002 1:27 AM
Grasshopper

GrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopperGrasshopper

Group: General Forum Members
Last Login: Monday, February 11, 2002 12:00 AM
Points: 24, Visits: 1
My understanding of the SA user account is that it should be used sparingly. As in, give it a complex password, lock it up in a safe and use it only in emergencies. If no one knows the password, the account theoretically can't be used to access the server/s.

If you can do the above and make all of your Administrators members of the "sysadmin" fixed server role, will this accomplish what's being discussed? If you need to restrict all Administrators from this specific database, don't assign anyone to the "sysadmin" role. However, this will probably complicate your life as you try to administer your system/s.

Any thoughts on the SA account use, and how much it should be used, or is commonly used?

cabby2583
caballero@mediaone.net
Always Learn!



Post #25267
Posted Wednesday, January 09, 2002 2:17 AM
SSC Journeyman

SSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC JourneymanSSC Journeyman

Group: General Forum Members
Last Login: Wednesday, November 29, 2006 7:59 AM
Points: 75, Visits: 1
Hi Cabby,

you can't restrict access to an sa user or a member of the Sysadmin role. I see where you're coming from but if you remove people from the sysadmin role that removes "God" access on all databases .... so yep, a complication indeed :)




Post #25268
Posted Wednesday, January 09, 2002 8:29 AM
SSC Eights!

SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!SSC Eights!

Group: General Forum Members
Last Login: Tuesday, July 31, 2007 8:20 AM
Points: 885, Visits: 1
Hi

Its not a problem really, the DBA is the DBA and should be GOD when its comes the DB management and administration. To achieve this, only the DBA uses and knows the SA account (in dev/test/prod) and reworks the BUILTIN\Administrators login account to remove sysadmin access or possibly delete it all together and create a new custom version associated with better defined domain and local groups. In the case where mixed mode is used, the same ideas apply.

Dont be bullied into giving away the SA account, it should remain flexible enough to alter its password at any time (ie, dont go embedding it into dts jobs etc), look at it as your super account for emergancies and "dba" fixes only.

Like in oracle with the sys account, its not going away, so they create a "system" account with slightly different privs etc (but still basically king). So manage the DB and the SA account as such.

My big gripe is auditing in SQL-Server, its basically totally crap and needs a lot more time spent on it, including additional triggers for "on login", etc etc for custom jobs.

Cheers

Chris




Chris Kempster
www.chriskempster.com
Author of "SQL Server Backup, Recovery & Troubleshooting"
Author of "SQL Server 2k for the Oracle DBA"
Post #25269
« Prev Topic | Next Topic »

Add to briefcase 12»»

Permissions Expand / Collapse