When having SharePoint 2013 Search index a fileshare, you may run into the following error message in the Crawl Log and notice no items were indexed:
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 auditing and security log' privilege.
This error can be fixed by adding the domain user you have configured as the default search indexer account (or if you have overriden this by configuring a crawl rule with a specific user account, use that instead) to the "Manage auditing and security log" priviledge in the Local Group Policy of the fileserver with the fileshare you're trying to index. To do this, follow these steps: