solving sql server problems for millions of dbas and developers since 2006



SQL Server DBA Tips SQL Server Developer Tips SQL Server Business Intelligence Tips SQL Server Career Tips SQL Server Tip Categories SQL Server Tutorials SQL Server Webcasts SQL Server Whitepapers SQL Server Tools SQL Server Questions and Answers MSSQLTips Authors About MSSQLTips SQL Server User Groups MSSLQTips Giveaways MSSQLTips Advertising Options

MSSQLTips Facebook Page MSSQLTips LinkedIn Page MSSQLTips RSS Feed MSSQLTips Twitter Page MSSQLTips Google+ Page





Why System Account is a bad idea for SQL Server Service Account

By: | Read Comments | Print

Brian is a SQL Server author and columnist focusing primarily on SQL Server security.

Related Tips: 1 | 2 | 3 | 4 | More

Problem

I'm trying to set up SQL Server and I know that I'm not supposed to use an account that's an administrator on the system, as per best practices. I see that the System account is a possibility, but I've been advised not to use it. Why not? Check out this tip to learn more.

Solution

First and foremost, the security recommendation is to use the least privileged account possible. The local System account is an administrator on the system, so if you're ruling out administrators, then on the basis of that alone, System should be out. Ruling out administrators is a good thing, because the members of the administrators group has far more rights than SQL Server typically needs. For instance, this snapshot of part of the local security policy shows just how powerful a member of the administrators group is.

In actuality, though, the System account is more powerful than a normal member of the Administrators group. One place where you can clearly see this is the registry hive HKEY_LOCAL_MACHINE\Security, which is a protected part of the registry. By default, administrators only have the following rights:

That's not very much, but it's more than any other type of user with the exception of System. System has Full Control, so it has all the rights:

This is definitely a part of the registry SQL Server shouldn't have access to. Therefore, even a regular member of the Administrators group is a better choice than the System account.

Given the permissions granted to the Administrators group plus the additional permissions granted to the System account, using System is a really bad idea when it comes to selecting a SQL Server service account.

Next Steps



Related Tips: 1 | 2 | 3 | 4 | More | Become a paid author


Last Update: 5/25/2011

Share: Share 






Comments and Feedback:


Post a Comment or Question

Keep it clean and stay on the subject or we may delete your comment.
Your email address is not published. Required fields are marked with an asterisk (*)

*Name   *Email   Notify for updates
Comments
*Enter Code refresh code


 

Sponsor Information
"SQL diagnostic manager delivers response in minutes, not hours!"

Quickly and accurately deploy database changes with Red Gate's SQL Compare - the industry standard comparison and deployment tool.

Need SQL Server help and not sure where to turn? Reach out to the Edgewood experts for a Health Check starting at $995.

Get SQL Server Tips Straight from Kevin Kline.

Solving SQL Server problems for millions of DBAs and Devs since 2006. Join now.

Are you waiting on SQL Server? Learn about these DMV's.


Copyright (c) 2006-2012 Edgewood Solutions, LLC All rights reserved
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