How to change service accounts and their passwords in MOSS and WSS 3.0

How to change the Application Pool Identity of a WSS or MOSS web application

  1. Open SharePoint Central Administration, click Operations.
  2. Under Security Configuration, click Service accounts.
  3. Click the radio button beside Web application pool. Select Windows SharePoint Services Web Application. Select the application pool where you want to change the identity, for example: Sharepoint - 80.
  4. Make a note of the existing settings in case you need to unwind your changes.
  5. Select the Configurable radio button. Provide the user name and password. It helps to be explicit here and use the domain\account format (e.g. mydomain\SPService). Also be sure to use a strong password. Click OK.
  6. To restart the application pool, either open IIS and recycle the application pool, or open a command prompt and type iisreset -noforce.
  7. Open your SharePoint site in a browser to confirm that the change was successful.  

This change will be automatically propagated to all web front-ends.

 

How to change the Application Pool Identity for SharePoint Central Administration (SCA)

Repeat these steps on each server which hosts the SharePoint Central Administration web application. If the web front-end (WFE) and application (APP) server roles are served by separate machines, SCA should be enabled on one APP server (or more) and stopped and/or removed from the WFE servers. This allows control over access to the SCA. The SCA service account should not be the same as that used for the SharePoint application pool so even if one is compromised, the other remains secure.

  1. Open a command prompt.  
  2. Run: stsadm -o updatefarmcredentials -userlogin domain\username -password password
  3. Be patient. This may take a few minutes to run.
  4. To restart the application pool, either open IIS and recycle the application pool, or open a command prompt and type iisreset -noforce
  5. Open SharePoint Central Administration in a browser to confirm that the change was successful.  

The above steps create an Administration Application Pool Credential Deployment timer job. You can see this in the Timer Job Definitions page. The job is complete when it no longer appears in the list of definitions (refresh the browser, this isn't automatic).

 

How to change the default content access account for MOSS search

The content access account is used to crawl and index SharePoint content for a given Shared Service Provider (SSP). It should be different from the application pool identity and configured so that only the most recent version of each document is indexed, otherwise old versions will appear in search results.

  1. Open SharePoint Central Administration (SCA), and on the left below Shared Services Administration click on the Shared Service Provider with the search configuration you want to change (e.g. SharedServices1).
  2. Under Search, click Search settings. Click Default content access account.
  3. Enter the credentials, confirm the password and click OK.

 

How to change the Search Service account for MOSS

Note that this is the identity used to run the Search Service, it is not the identity with which content is actually crawled and indexed. This account must be a local administrator (not a domain administrator) on both the query server and the index server in order for index propagation to work. This is set automatically for you when you click OK (below), but is the first thing to verify if you get a "Query server not responding" error (see Chris Gideon's post).

  1. Open SharePoint Central Administration, click Operations.
  2. Click Services on server, and then Office SharePoint Server Search.
  3. Configure the Farm Search Service Account. It is okay to use the same account as the SharePoint application pool identity.
  4. Scroll down and click OK.
  5. Wait while your changes are processed.

 

How to change the default content access account for WSS search 

Note that the Search Service account (which runs the WSS search application) is not the same as the Content Access account (which actually indexes the content). The Search Service account may be the same as the SharePoint application pool identity. The Content Access account should be different from the SharePoint application pool identity.

  1. Open SharePoint Central Administration, click Operations.
  2. Click Services on server, and then Windows SharePoint Services Help Search.
  3. Configure the Service Account.
  4. Configure the Content Access Account.
  5. Scroll down and click OK.
  6. Wait while your changes are processed.

or

  1. Open a command line.
  2. Run: stsadm.exe -o spsearch -farmserviceaccount domain\username -farmservicepassword password
    It is okay to use the same account for this service as the SharePoint Application Pool identity.
  3. Run: stsadm.exe -o spsearch -farmcontentaccessaccount domain\username -farmcontentaccesspassword password
    This account should be different from the SharePoint Application Pool identity.
  4. Repeat these steps for all servers in the farm.
 

Many of the above steps are also documented in the MSDN KB Article 934838: How to change the passwords for service accounts in SharePoint Server 2007 and in Windows SharePoint Services 3.0, which could just as well be titled "How to change passwords or accounts for service accounts. . . ." But note that the KB article doesn't explain why you would make changes in the first place, only the how-to.

KB 934838 also contains a nice batch file you can customize to make many changes at once. Of course, please, please, please don't do something incredibly silly with it like saving your passwords in cleartext.

 

Background

There are a variety of reasons to change the accounts used by SharePoint's many services. The "best practice" is to use the same account wherever you have the same permission or auditing requirements for two operations, and distinct accounts for each potential attack surface.

Example 1: Two SharePoint application pools might use the same identity, unless the breach of one should absolutely not affect the breach of another. For example, the compromise of a web front-end should not also allow the compromise of central administration (and vice versa), therefore these two applications should run in separate pools with separate identities.

Example 2: Content crawler accounts need only read SharePoint content, so assigning any more rights or allowing the crawler to run as an administrator or database owner (e.g. using the application pool identity) creates a prime attack surface. Don't do that.

On a standalone WSS or MOSS configuration, local accounts work just fine. This is typical for a developer environment. When you need to more fully replicate a production environment, it's a good idea to join such a machine to a domain and configure the farm accordingly with similar domain accounts and often Kerberos.

There are some useful rules of thumb to follow in configuring SharePoint accounts.

Rule #1: Don't change account pool identities directly in IIS (unless it's the only way).
I've taken some pains to describe what I think are the best ways to configure accounts. Commands aren't generally added to STSADM or SCA on a whim (though I'll concede the possibility). If there's a SharePoint way of doing something, it's usually best to do it SharePoint's way and not the alternative. A similar rule is "never touch the database."

Rule #2: Make the changes while logged in as a domain administrator.
The service accounts must be granted rights and be named in policies. If you use SharePoint's interfaces, SharePoint will update the appropriate rights and policies for you, but you must execute the changes while logged in as a user who is able to set these permissions and policies. This usually means being logged in as a domain administrator.

 That's it, have fun.

 

References

Joel Oleson: Password change via stsadm (2006-08-22)

MSDN KB 934838: How to change the passwords for service accounts in SharePoint Server 2007 and in Windows SharePoint Services 3.0


 

Published Friday, July 06, 2007 10:26 AM by erobillard

Comments

Sunday, July 08, 2007 4:02 AM by Mike Walsh's WSS and more

# WSS FAQ additions and changes LXII - 2nd - 8th July 2007

Thursday, July 12, 2007 11:37 AM by SharePoint, SharePoint and stuff

# SharePoint Kaffeetasse 15

Buchtipps Microsoft Office SharePoint Server 2007 - Das Handbuch von Bill English Beginning SharePoint

Thursday, July 12, 2007 4:54 PM by SharePointPodcast.de

# SPPD074 SharePointPodcast

Direkter Download: SPPD-074-2007-07-12 [00:00] Intro [00:00] Buchtipps Microsoft Office SharePoint Server

Wednesday, July 18, 2007 12:03 AM by SPPD074 SharePointPodcast | 8 Mover Directory

# SPPD074 SharePointPodcast | 8 Mover Directory

Pingback from  SPPD074 SharePointPodcast | 8 Mover Directory

# HowTo: Change Service Accounts and their Passwords at Just SharePoint

Pingback from  HowTo: Change Service Accounts and their Passwords at Just SharePoint

Monday, October 08, 2007 2:56 AM by Blog del CIIN

# WSS 3.0 & MOSS: Recopilación de enlaces interesantes (VIII)

Después de una semana un tanto ajetreada en el CII, noi podíamos faltar al tradicional recopilatorio

# How to change service accounts and their passwords in MOSS and WSS 3.0

Pingback from  How to change service accounts and their passwords in MOSS and WSS 3.0

Wednesday, January 09, 2008 8:06 PM by Mirrored Blogs

# SPPD074 SharePointPodcast

Direkter Download: SPPD-074-2007-07-12 [00:00] Intro [00:00] Buchtipps Microsoft Office SharePoint Server

Thursday, May 08, 2008 7:59 AM by Adrian Turtschi

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

re: "Rule #2: Make the changes while logged in as a domain administrator."

Not sure I inderstand the rationale given. Installing MOSS requires Box Admin rights--why would you need additional rights (i.e. Domain Admin) to make service account changes?

Thursday, June 05, 2008 5:47 AM by I'm small, so share nothing...

# SharePoint Event ID 6482

SharePoint Event ID 6482

Thursday, June 26, 2008 7:49 AM by Sharepoint NOOB

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Hi guys,

How could i revert back the changes i made to the Application Pool Identity of a WSS or MOSS web application? I cannot return the default value of the Application Pool Identity of a WSS or MOSS web application. When i made the changes on the Application Pool Identity of a WSS or MOSS web application my sites got the error "404 NOT FOUND".

Wednesday, September 03, 2008 11:18 PM by Ven

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Hi,

 Hi,

   I installed SharePoint with the Local Administrator account throughout, including Central Admin. But when I try to find the Central Admin site in the list of Web Applications for whom I can configure the Service Account, I don't even find it listed there. So please let me know how to change the username and password for the Central Admin site. Please let me know about this at the earliest.

Sunday, September 07, 2008 7:04 PM by Ven

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Hi,

  I am facing a different problem. Unknowingly, I installed whole MOSS under Local Admin account. My MOSS is in one server and SQL is in another server. So, now, I want to change the Local Admin account to Domain acount everywhere ,i.e. in all the services including Central Admin. I thought of changing this in Service Accounts section of the Central Admin,but in the list of Web Applications, I couldn't see the Central Admin web application listed. I googled a lot,but couldn't find a solution anywhere. Everywhere people talk about changing the passwords and not user name. My requirement is to change the user name and also password,obviously without causing any problem anywhere. Moreover,many people told me not to change the Service Accounts even through the Central Admin section, as they faced some issues after that. So, I would be really thankful, if you can give me a solution to this problem. Please list out the detailed steps,so that I can understand, as I am new to SharePoint.

# Account password hell in Moss « Rehman Gul [MVP, MCTS SharePoint]

Pingback from  Account password hell in Moss « Rehman Gul [MVP, MCTS SharePoint]

Thursday, March 19, 2009 3:49 AM by Microsoft Korea Enterprise Office Server Team Blog

# WSS 3.0 / MOSS 서비스 계정 변경 및 비밀번호 변경

[주제] MOSS 설치 이후 정책에 의해서 서비스 계정 변경 혹은 비밀번호를 변경 해야 하는 경우가 있습니다. 이에 대한 해결 방법에 대해 설명 합니다. MOSS 관련 서비스 계정을

Tuesday, June 09, 2009 7:03 AM by SharePointPodcast

# SPPD074 SharePointPodcast

Direkter Download: SPPD-074-2007-07-12 [00:00] Intro [00:00] Buchtipps Microsoft Office SharePoint Server

Tuesday, June 30, 2009 1:36 AM by AmrutG

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Thanks for the Post! It really worked in our case!!!!!

Wednesday, September 16, 2009 10:20 AM by MOSS change to other domain « Groen als MOSS

# MOSS change to other domain « Groen als MOSS

Pingback from  MOSS change to other domain « Groen als MOSS

Wednesday, September 16, 2009 10:21 AM by Nico de Jong

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Pingback from groenalsmoss

Tuesday, October 27, 2009 7:50 PM by rajeev

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Awesome and helpful post. Wonder why isnt there just a tool - that does this? since it;s just a bunch of cmd line steps?

Wednesday, October 28, 2009 11:05 AM by erobillard

# re: How to change service accounts and their passwords in MOSS and WSS 3.0

Rajeev - there's a great tool by Pav Cherny published in the March 2009 TechNet maazine (both the magazine and online). Search for his name and "Security Acounts in SharePoint" to locate it. It goes a step further by letting you set a single master password, and the tool manages the passwords for several SharePoint service accounts. Though not "supported" for production, it's a great piece of work and the concept is baked into SharePoint 2010 to ease credential management.

Friday, February 26, 2010 8:51 AM by Twitter Mirror

# http://weblogs.asp.net/erobillard/archive/2007/07/06/how-to-change-service-accounts-and-their-passwords-in-moss-and-wss-3-0.aspx

http://weblogs. asp.net /erobillard/archive/2007/07/06/how-to-change-service-accounts-and-their-passwords

Leave a Comment

(required) 
(required) 
(optional)
(required)