Subscribe to Windows IT Pro

 

Get Newsletters

  • Get the Latest News
  • Product Updates
  • Helpful Tricks
  • Productivity Tips

Subscribe Now!

October 18, 2005 12:00 AM

Controlling Service and Batch Job Accounts' Access to Resources

Windows IT Pro
InstantDoc ID #48047
Rating: (0)

What's the best way to handle passwords for accounts for services (such as SQL Server and Exchange) and batch jobs (such as scheduled tasks) so that IT staff who leave the company can't use these accounts to access resources?

You have a couple options. Most people think of the least desirable one first: Keep a list of all such accounts and who knows their passwords and when someone leaves, change the passwords on all the appropriate accounts. This approach is onerous, and it's risky—processes or services can break if you make mistakes when changing a password, or you might fail to update the password for a service or scheduled task.

Another option is to leverage Windows logon rights in such a way as to prevent a terminated user with knowledge of a service or batch account's password from being able to use it to access any resources. No matter how an account logs on, it must have the appropriate logon right. To log on at the console of a computer, you need the Log on locally right. To access a computer from over the network, such as through a shared folder, you need the Access this computer from the network right. Scheduled tasks require the Log on as a batch job right, and services need the Log on as a service right. To access a computer via Terminal Services (aka Remote Desktop), you need the Log on through Terminal Services right. Each of these logon rights has a corresponding deny right that takes precedence if both the allow and deny rights are assigned to an account.

Human users can directly exploit only the Log on locally, Access this computer from the network, and Log on through Terminal Services rights, so the trick is to make sure service and batch accounts don't have any of these rights. The easiest way to do this is to create a group with all service and batch accounts as members and set a policy that explicitly denies these three rights. Then if someone leaves the company with knowledge of a service account's password, the individual won't be able to exploit that knowledge.

Of course, if you have any service or batch account that needs to access other computers, you won't be able to deny that account the Access this computer from the network right because that would break the process. You'll need to keep track of such situations and resort to the less desirable method of changing the account's password when someone leaves the organization or changes positions.

Related Content:

ARTICLE TOOLS

Comments
    There are no comments to display. Be the first one!
You must log on before posting a comment.

Are you a new visitor? Register Here

advertisement

advertisement

White Papers

Get your Windows 7 deployment off to the right start by implementing PC lockdown. A locked-down environment is easier and cheaper to support since users are less likely to make unnecessary changes to the core system configuration - read more here!

Essential Guides

Is your iSCSI "lossy"? The reality is that most off-the-shelf Ethernet hardware deployed for iSCSI can lose packets, resulting in slow performance or application downtime. Learn how to assess your current iSCSI infrastructure and engineer an advanced iSCSI SAN infrastructure.

Web Seminars

What's the best way to keep your network safe from malware? In this web seminar, security expert Greg Shields suggests an alternative method to the traditional blacklisting approach that is common with anti-virus and anti-malware solutions.

eLearning Series

We bring the experts direct to you to share their real-world perspective and expertise. During each event, three sessions stream in real time, so you can learn, ask questions, and get solutions.
Upcoming event: Getting the Most with Exchange 2010 with Paul Robichaux

Subscribe to Windows IT Pro!

Windows is a trademark of the Microsoft group of companies. Windows IT Pro is used by Penton Media Inc. under license from owner.