{"id":1793,"date":"2009-12-31T06:08:10","date_gmt":"2009-12-31T14:08:10","guid":{"rendered":"https:\/\/www.zubairalexander.com\/stage\/?p=1793"},"modified":"2017-07-16T16:08:26","modified_gmt":"2017-07-16T23:08:26","slug":"moss-2007-service-accounts","status":"publish","type":"post","link":"https:\/\/www.zubairalexander.com\/blog\/moss-2007-service-accounts\/","title":{"rendered":"Minimum Permissions Required for MOSS 2007 Necessary Service Accounts"},"content":{"rendered":"<p>For security reasons, it is best to ensure that the service accounts used with Microsoft Office SharePoint Server (MOSS) 2007 run with only the minimum permissions necessary. This is referred to as the principle of least privilege.<\/p>\n<p>Microsoft recommends two general rules that you should apply to all your MOSS 2007 service accounts:<br \/>\n&#8211; Use separate domain user accounts for services with different security requirements.<br \/>\n&#8211; Do not use domain user accounts with the local administrator or domain administrator privileges to run any services.<\/p>\n<p>Microsoft suggests in one of its white paper that you can use a single service account with administrative privileges to install MOSS 2007 and when everything is working perfectly then you can go back and assign the services with different accounts with minimum permissions. Here&#8217;s the exact quote from Microsoft:<\/p>\n<p><em>To reduce troubleshooting time, you can install an Office SharePoint Server 2007 server farm by using a single service account with administrative privileges. When you are sure that everything works correctly, you can then assign the services to different accounts with minimum permissions.<\/em><\/p>\n<p>However, I am totally against this recommendation. On paper this may sound like a good idea but in the real world this can potentially become a nightmare. It&#8217;s bad enough that you need so many different accounts to run SharePoint, once you start messing with the service accounts you may end up running around in circles and troubleshooting can become very difficult.<\/p>\n<p>If you must change service accounts and passwords, then check out my blog from December 2008: <a href=\"https:\/\/www.zubairalexander.com\/blog\/how-to-change-service-accounts-and-service-passwords-in-moss-2007-wss-30\/\">How to Change Service Accounts and Service Passwords in MOSS 2007 &amp; WSS 3.0<\/a>.<\/p>\n<p>Here&#8217;s a table of <a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/MossServiceAccounts.pdf\">Minimum Permissions Required for\u00a0MOSS 2007 Service Accounts<\/a>. The information is based on a Microsoft TechNet document. If you are interested in only the necessary SharePoint service accounts then check out <strong>Sharee&#8217;s blog<\/strong> <a href=\"http:\/\/www.shareesblog.com\/?p=247\">Necessary SharePoint Service Accounts<\/a>. She uses her vast SharePoint knowledge to explain things in more detail. There are so many lists out there that document MOSS accounts necessary to install SharePoint properly and some of them are really convoluted. Because Sharee has done tons of successful\u00a0 installations at our clients based on the table that she has put together, I&#8217;ve created a table of accounts based on her table and then I also put together a script that creates all the accounts in an OU called Service Accounts. I have tested the script and it works great. Make sure you check out her <a href=\"http:\/\/www.shareesblog.com\/?p=247\">blog<\/a> because she has additional valuable information that I have not included in this post.<\/p>\n<p><strong>Table of Necessary MOSS Accounts (based on Sharee&#8217;s recommendation)<\/strong><\/p>\n<p>Here&#8217;s a table of necessary MOSS 2007 accounts. This is a fancy version of Sharee&#8217;s table. The table includes the purpose of each account, and its group, domain and SQL rights. You can use your own naming convention. I started my accounts with SP (for SharePoint&#8230;.or SeattlePro) so I can recognize them as the accounts that were created by me, rather than the system.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/MossServiceAccounts.pdf\"><img decoding=\"async\" class=\"alignnone wp-image-1929 size-medium\" title=\"moss_2007_accts\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/moss_2007_accts-300x187.jpg\" alt=\"moss_2007_accts\" width=\"300\" height=\"187\" \/><\/a><\/p>\n<p><span style=\"color: #ff0000;\"><strong>WARNING!<\/strong><\/span> Although standard Active Directory accounts can have spaces and can be longer than 20 characters, I suggest you limit your account names to 20 characters because the Pre-Windows 2000 login names are limited to 20 characters in WS08 and can&#8217;t have spaces. You may not run into any issues in the near future if you don&#8217;t follow my advice but I think it is better to be safe than sorry.<\/p>\n<p><strong>Script to Create Necessary MOSS Accounts<\/strong><\/p>\n<p>To create all the above necessary accounts and the OU, you can download the script <a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/docs\/scripts\/MOSSaccounts.zip\">here<\/a>. The results will look like this. This script adds all the necessary permissions required for the accounts in the description so you can easily verify that you have the permissions set properly.<\/p>\n<p><span style=\"color: #ff0000;\"><strong>WARNING!<\/strong><\/span> Make sure you change the password in the script to match with the password that you want to use for your service accounts.<\/p>\n<p><a href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/srvcaccts.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1924\" title=\"srvcaccts\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/srvcaccts-300x114.jpg\" alt=\"srvcaccts\" width=\"300\" height=\"114\" \/><\/a><\/p>\n<p><strong>Troubleshooting Tip<br \/>\n<\/strong><\/p>\n<p>You may encounter a problem when you try to give the service accounts permission to impersonate a client after authentication. On your WS08 Domain Controller you can start Group Policy Management Console, go to Group Policy Objects, right-click Default Domain Controllers Policy and select Edit. In the Group Policy Management Editor, go to Computer Configuration, Policies, Windows Settings, Security Settings, Local Policies, User Rights Assignment and double-click <em>Impersonate a client after authentication<\/em>. Check the box <em>Define these policy settings<\/em>. If you simply add the service accounts you created and then click Apply or OK you won&#8217;t get anywhere. Notice that the warning at the bottom is telling you that you need to add the Administrators and the SERVICE account.<\/p>\n<p><a title=\"Impersonate a client after authentication\" href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient1.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1938\" title=\"impersonatingclient1\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient1-300x252.jpg\" alt=\"impersonatingclient1\" width=\"300\" height=\"252\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient1-300x252.jpg 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient1-768x646.jpg 768w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient1.jpg 948w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>It may not be obvious but what that means is that you need to literally add the <strong>Administrators <\/strong>and <strong>SERVICE <\/strong>account as shown below in the screenshot and then when you click Apply the warning message will disappear and you will be able to click OK to proceed.<\/p>\n<p><a title=\"Impersonate a client after authentication\" href=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient2.jpg\"><img decoding=\"async\" class=\"alignnone size-medium wp-image-1940\" title=\"impersonatingclient2\" src=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient2-300x251.jpg\" alt=\"impersonatingclient2\" width=\"300\" height=\"251\" srcset=\"https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient2-300x251.jpg 300w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient2-768x644.jpg 768w, https:\/\/www.zubairalexander.com\/blog\/wp-content\/uploads\/2009\/12\/impersonatingclient2.jpg 950w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<hr \/>\n<p><span style=\"font-size: xx-small; font-family: Verdana;\">Copyright \u00a92009 Zubair Alexander. All rights reserved.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>For security reasons, it is best to ensure that the service accounts used with Microsoft Office SharePoint Server (MOSS) 2007 run with only the minimum permissions necessary. This is referred to as the principle of least privilege. Microsoft recommends two general rules that you should apply to all your MOSS 2007 service accounts: &#8211; Use [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[43,24,54,11],"tags":[],"class_list":["post-1793","post","type-post","status-publish","format-standard","hentry","category-articles","category-security","category-sharepoint","category-tips-tricks"],"aioseo_notices":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1793","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/comments?post=1793"}],"version-history":[{"count":0,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/posts\/1793\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/media?parent=1793"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/categories?post=1793"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.zubairalexander.com\/blog\/wp-json\/wp\/v2\/tags?post=1793"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}