![]() |
|
|
|
By: Jeremy Kadlec | Read Comments (6) | Related Tips: 1 | 2 | 3 | More > Security |
Problem
The principal of least privileges is a cornerstone to most security implementations. The premise behind the principal is to only grant users, developers, DBAs, network administrators, etc. the needed rights and nothing more. If additional rights are required, evaluate the rights and grant the access accordingly.
With SQL Server 2000 and 2005 one area that does not seem to follow this principal is related to the default rights for the BUILTIN\Administrators group. By default this group has SQL Server System Administrator rights to SQL Server when it is installed. The same level of default rights are also granted to BUILTIN\Administrators group in SQL Server 2005 during the installation. What this means is that any account in the Windows Local Administrators group has SQL Server System Administrator rights.
Solution
The BUILTIN\Administrators can easily be removed from SQL Server to prevent this security issue, but heed the warnings below prior to removing the group from SQL Server.
What steps should I take prior to considering removing this group?
*** NOTE *** - Do not remove the BUILTIN\Administrators group from SQL Server if other logins or groups do not have SQL Server System Administrator rights or if you do not know the "sa" password.
With all of that being said, how do I remove the BUILTIN\Administrators group?
| Method | Directions |
| SQL Server 2000 T-SQL Commands |
USE MASTER GO exec sp_revokelogin N'BUILTIN\Administrators' GO |
|
OR | |
| SQL Server 2000 Enterprise Manager |
|
| Method | Directions |
| SQL Server 2005 T-SQL Commands |
DROP LOGIN [BUILTIN\Administrators] |
|
OR | |
| SQL Server 2005 Management Studio |
|
Next Steps
| Wednesday, January 20, 2010 - 9:16:29 PM - bedwar2 | Read The Tip |
|
The problem not mentined in the article (I know it's about 4 years old now) is that removing that group makes the SQL Server Agent service fail. I guess you have to create an account with a non-expiring password in order for that to work. Fix one problem, though and cause another. Sometimes I have to ask do you want it secure or do you want it to work? |
|
| Friday, January 22, 2010 - 4:08:48 PM - admin | Read The Tip |
|
Bedwar2, Thank you for the feedback. I think the situation you mentioned can be alleviated by granting the “DBA” Windows domain group SQL Server sysadmin rights before making any changes to the BUILTIN\Administrators Group rights in SQL Server. In addition, setup the SQL Server services to execute with a Windows domain account which has SQL Server sysadmin rights before making any changes to the BUILTIN\Administrators Group rights in SQL Server. As a last preventive measure, be sure you know the sa password and validate you are able to access the SQL Server before making any changes to the BUILTIN\Administrators Group rights in SQL Server . Hopefully this will prevent any sort of permissions issues. Thank you,
|
|
| Friday, November 12, 2010 - 3:14:35 PM - krystian | Read The Tip |
|
DO NOT REMOVE BUILTIN\Administrators Group from SQL server when you planning to install cluster. If you do will NOT work |
|
| Friday, April 29, 2011 - 8:52:56 AM - Dario | Read The Tip |
|
Porque cuando quito el permiso de BULTIN no me hace los backup en el server programados |
|
| Friday, April 29, 2011 - 9:35:07 AM - Greg Robidoux | Read The Tip |
|
Dario, You should look at the service account that you are using for SQL Agent. If the account was using the BUILTIN\Administrators group to get access to SQL Server then you will have issues running jobs. Use SQL Server Configration Manager to look at your service accounts and make sure that account has the access it needs within SQL Server to perform backups along with the necessary permissions on the file system to write the backup files. |
|
| Tuesday, May 14, 2013 - 9:19:57 AM - user1 | Read The Tip |
|
BUILTIN\Administrators is suddnely using 1.7 Terabytes on my personal computer. I am the only user and I am using less than 150 gigs. I would like to delete whatever is being saved without damaging the PC. Thanks for your help.
|
|
|
privacy | disclaimer | copyright | advertise | about authors | contribute | feedback | giveaways | user groups Some names and products listed are the registered trademarks of their respective owners. Edgewood Solutions LLC | MSSharePointTips.com | MSSQLTips.com |