Question

We’ve all been there assigning all accounts to install SharePoint. Specifically we use a setup account (SP_Install) and a farm administrator account (SP_Farm). When we install signed in to the server with SP_Install and run AutoSPInstaller with the same account a lot of things happen. The services Timer Service and Central Admin runs as SP_Install and not SP_Farm as it should. The same goes for the beloved User Profile Synchronization Service which also runs as SP_Install and not SP_Farm as it should.

Spence Harbar have the same opinion when he says:

. . . think of this like the SharePoint “setup” user, which is often promoted as a “best practice” but is nothing of the sort.

I’ve started running AutoSPInstaller signed in to the server and running as administrator with the Farm Administrator Account (SP_Farm) and everything gets to be where I want it to be.

Do we really REALLY need the setup account (SP_Install)?

Was it helpful?

Solution

Short answer, no. You don't need it. It's just a super, no bars account that all the rest of the accounts' permissions are designated from. As part of the "best practice" its one of those accounts that Microsoft suggests to set everything up with the least-privileged account security model.

AutoSPInstaller is a great tool I still rely on today, but running it on the SPFarm account would give all the permissions to SPFarm, which I wouldn't bat an eye at.

The Setup user account is used to run the following:

  • Setup
  • SharePoint Products Configuration Wizard

Source: Initial deployment administrative and service accounts in SharePoint 2013

OTHER TIPS

The sp_install user should only be used to execute the base/initial installation of SharePoint. The sp_farm account is used after the setup in the SharePoint Configuration Wizard. And after that all Services should run under SP_Farm Account as expected.

I don't know if you can separate the accounts in the AutoSPInstaller but i am sure it will be ok to only use the SP_Farm Account.

I've always intalled my SP farms with SPInstall (often named SPAdmin in my cases). When prompted by the setup program for the account to run the farm with, I enter SPFarm. After that, everything is usually configured OK, i.e. SP Timer, CA pool, etc. run Under SPFarm.
I then use SPInstall (aka SPAdmin) to log on the machine and administrate SP (i.e. access CA and PowerShell). This prevents you from logging with SPFarm witch may be a bad practice.

If you are going to quote Spence Harbar on the farm account, be sure to read all of his blogs:

You don’t need to log on as the Farm Account ever to get UPS (or anything else) working. Logging on as the Farm Account is a very, very bad idea and you shouldn’t be doing it. from http://www.harbar.net/articles/sp2010ups2.aspx.

So no, you should not log in with the SP_Farm account. As I read it from the post you reference is that you don't need a specific sharepoint install account. Any account with enough permissions (local admin & domain user) will do. But not the Farm account.

For me it's just a matter of easy maintenance. You don't need to worry about which user will have the right permissions to administer the SharePoint farm. No need to worry on who has the right permissions to use PowerShell etc.

I've used AutoSPInstaller before and it respects the user account best practice. I log into the server with the install account, run AutoSPInstaller and configure it to use the relevant service accounts. I've never seen it that it would run services under the install account.

Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange
scroll top