TL;DR — Resumo Rápido
Learn how to give sharepoint 2013 crawler sufficient rights/permissions to crawl file shares. Step-by-step guide with examples.
Nota: Este artigo foi publicado originalmente em 2013. Alguns passos, comandos ou versões de software podem ter mudado. Consulte a documentação atual de Sharepoint 2013 para as informações mais recentes.
Pré-requisitos
Antes de começar, certifique-se de ter:
- SharePoint Server 2013 or later
- Farm administrator or site collection admin access
- PowerShell with SharePoint snap-in
How to: Give (https://sharepoint.microsoft.com “Microsoft SharePoint”) 2013 (https://en.wikipedia.org/wiki/Web_crawler “Web crawler”) sufficient rights/permissions to crawl file shares
(<void(0);>)
Consider the following scenario:
- You create file shares on a (https://www.microsoft.com/en-us/server-cloud/windows-server/default.aspx “Windows Server 2012”) server.
- You set up a (https://www.microsoft.com “Microsoft”) SharePoint 2013 crawler on the file shares, and you assign Read permissions to the crawler.
- You crawl the file shares by using SharePoint Server 2013.
- You search for a file in the file shares by using SharePoint Server 2013.
In this scenario, no search result is returned. Additionally, the following error message is generated in the crawl log:
The crawl account did not have sufficient privileges to access the security attributes of this file or folder. Ensure the crawl account has the ‘Manage (https://en.wikipedia.org/wiki/Audit “Audit”) and security log’ privilege.
(<void(0);>)
To resolve this issue, assign the Manage Auditing And (https://en.wikipedia.org/wiki/Segurança_log “Segurança log”) permission to the SharePoint 2013 crawler. To do this, follow these steps on the computer that hosts the file shares:
- Click Start , click Run , type gpedit.msc, and then click OK.
- Navigate to the following location in the Local Group Policy Editor:
Computer ConfiguraçãoWindows SettingsSegurança SettingsLocal PoliciesUser Rights Assignment
- In the right pane, locate and (https://en.wikipedia.org/wiki/Context_menu “Context menu”) Manage auditing and security log , and then click Properties.
- Click the Add User or Group button in the Manage auditing and security log properties (https://en.wikipedia.org/wiki/Dialog_box “Dialog box”), and then add the crawl account that the SharePoint 2013 crawler uses.
- Click OK in the Manage auditing and security log properties dialog box.
Note If you assign the Manage Auditing And Segurança Log permission by using a (https://www.microsoft.com/grouppolicy “Group Policy”) (GPO), add the crawl account to the GPO.