4 Replies Latest reply: Apr 15, 2013 3:51 PM by Quick_Cut_Production
Quick_Cut_Production Level 1 (0 points)



Is there a way to search the fils shared on our server by using the Spotlight search?



What I'm looking to do is search for files that are in the share point on my server by using Spotlight. That, would be super.


I would settle for opening the share point and being able to use the search function there. But while I am browsing through a folder and I use the search bar in the right corner (I'm refering to the one in the finder window, not the spotlight search bar in the corner of my screen) it won't return any results.


If I use Screen Share to access the server and try the same, it returns with the expected results....



Is there some setting I'm missing somewhere????




Things to note:

Using a Mac Mini as my server (OS 10.8.2) w/ Server.app

Mac Mini Server, OS X Server
  • infinite vortex Level 7 (21,400 points)

    You probably don't have the correct ACL set for your file shares to allow Spotlight through to index the directories. If you do an ls -le in the parent directory your file share needs to have an ACL that looks like this…


    1: user:_spotlight inherited allow list,search,file_inherit,directory_inherit


    Once you have this Spotlight will be able to index your file share correctly and results returnable from a client system.

  • Quick_Cut_Production Level 1 (0 points)

    Thanks for your response.


    I'm not sure what you mean by ACL though...

  • UptimeJeff Level 4 (3,420 points)

    When you look at the sharepoint using the Server App, you should see this:




    More specifically.. If your sharepoint is at the path of /Groups/Management and you issue this from Terminal (directly on the server)


    ls -ale /Groups/Management



    One of the lines returned should be:



    1: user:_spotlight inherited allow list,search,file_inherit,directory_inherit





    If you don't see this, its easy to add..



    sudo chmod -R +a# 1 "_spotlight allow list,search,file_inherit,directory_inherit" /Groups/Management



    Watch out for spaces in the name.

    If you do have spaces or are unsure how to type the path, then enter



    sudo chmod -R +a# 1 "_spotlight allow list,search,file_inherit,directory_inherit"   {read next line}


    and before you hit enter, drag the sharepoint folder to the Terminal window to auto-fill the path.

    Then hit return.

    You also need to make sure spotlight is enabled for the drive which stores your sharepoint.


    Check status of all drives with

         sudo mdutil -s /Volumes/*

    To enable for your startup drive:

         sudo mdutil -i on /

    If the sharepoint is on another volume.

         sudo mdutil -i on /Volumes/Drivename




    Hope that helps.

  • Quick_Cut_Production Level 1 (0 points)

    Thank you for your response. I am going to give this a shot.


    I just realized this, spotlight is still indexing... I don't know if this has any influence on what we're talking about.


    Another point I should raise is that I have been having trouble getting Time Machine to backup the drive. It has been running for weeks and not completed, then it got stuck. I've stopped and am going to re-try the back-up. But first I'd like to shut down the server for a few minutes and restart it, just to see if the indexing will complete itself... Now if I could just get everyone to disconnect from the server for ten minutes! ha


    I will try this all tonight and we'll see how it goes.


    Thanks again for your help!!