Spotlight permission issue with multiple users - user A can search files from user B

Hello everybody,



i need your help with a bad and precarious spotlight issue.

Mavericks is a clean install on my 2010 MacPro and Everything runs fine - but this issue is very annoying.


User A is admin - user B a normal user.


The Problem:

If user B uses spotlight in his account, he also gets the search results from files of User A.

This meens the files in the user folder from User A and also the files on his own extra hard-drive.


For Example to get it clear to you:

On the Desk of User A is a file called "birthday-presents.rtf".

User B searches in his Spotlight "birthday" - now he gets as a result also this file from User A.

He can not open it at all - but he can se it in the spotlight search results.

This also affects the mails, calendars etc.....



This is of course very bad to User A - because his file-names aren't secure anymore.

But also User B has a problem - because his Spotlight results are much longer with a lot files he don't want to see because this files are not his ones.





What can i do?


I rebuilded the spotlight index, but this does not help.


Permissions also seem to be OK - here is a screenshot (german, but i think you catch it).




User uploaded file

Posted on Jan 6, 2014 5:08 PM

Reply
38 replies

Jan 21, 2014 1:38 PM in response to Harald Köhler

This seems an awful lot like the same problem that i'm having (with a few possibly important differences, more on that below), but i believe i have actually resolved this now, using the method i described before (resetting user account permissions, THEN rebuilding Spotlight index). I said before that i had success with this, but then the problem came back. But yesterday i realized i'd caused the problem to come back by a mistake i made. So, in case it's helpful to others, here is what i've found:


If i create a folder directly in a user's home directory, that folder is searchable by all users, but the files will not be accessible. This seems like a bug. But if i put the folder within one of the default folders within the home directory (Desktop, Documents, etc), then everything acts as it should. So if you want to create a new folder within a user's home folder (ex: MediaUser/TV/ ) then you must set the permissions of that folder. I just used the Finder's get info window, removed "staff" permissions altogether, and changed "everyone" permissions to "no access".


With that in place, i can rebuild the Spotlight index and everything is fine.


You may want to try one more time to do it *in that order*. I think the order matters because the error is happening during indexing, not searching. So you fix permissions, THEN rebuild the index, and the indexer will see everything with the correct permissions and work accordingly. This is only speculation, since it worked for me.


The main difference i can see between your description and what i'm experiencing are that my users *were* migrated, after my Mavericks install from the App Store failed and bricked my MBP. I then did a clean install, and migrated users from a backup. I'm including these details for anyone reading the thread, in case it helps.


The other obvious difference is that in your case, it seems that folders like Desktop, which should have the correct permissions by default, are also affected. This is not the case for me.


I hope this is helpful!

Jan 22, 2014 4:13 AM in response to Linc Davis

Thanks for your help so far!

Linc is right - my problem is another one that yours - and i don't have a solution right now.


Now i tried one more thing:

Reinstalled Mavericks again - i downloaded it from the app store again - now its out of the box 10.9.1.

Than i created a new and neutral admin account.

After this i created the 2 users as standard-users without admin-permissions.


But same beahviour.


User B gets the results from User A files in the spotlight search.





I only cann imagine it hast something to do with spotlight permissions.

But as i told you i reindexed spotight index more than one time over the terminal.



Now i have no idea what else i can do.....

Jan 22, 2014 9:09 PM in response to Linc Davis

No Change at all :-(


Again i tried to solve the problem the last 5 hours......


I still believe the Spotlight Index is the catalyst for the Problems.

Re-indexing helps a few restarts - but at least after 5-6 Tests and restarts the Problem is back.


I can't believe that Nobody Else has this Problems.

Perhaps you did Not try carefully enough?

You Must do at least 5-6 restarts with each acccount.

In my Case - in the meantime testet on 3 different macs - after any of These restarts the Problem came back.......



I am so desperate.........


Hope i will get it with your help.....

Feb 26, 2014 9:28 AM in response to Harald Köhler

Hi Harald,

I was having the identical problem and finally found a solution. Re-indexing spotlight alone had not solved my problem, but the below commands did.


sudo mdutil -i off /

sudo mdutil -E /

sudo mdutil -i on /



You should run these commands in your admin account. Make sure to close all other accounts and all open applications before doing this. Hope this helps.

May 15, 2015 7:02 AM in response to JBC_Apple

This post is for Linc Davis, if you have the time to reply I'd appreciate your opinion. I recently installed OS X Server on a 2009 Mac Pro with a connected Mini SAS raid enclosure as the storage device. I am backing up this device over the LAN to a Thunderbolt connected raid on my 2013 Mac Pro using Chronosynch. I am getting permissions locking me out of certain folders and I cannot figure out why some and not all folders get the red dot. I clear permissions using sudo chflags -R nouchg & sudo chmod -R 777 in Terminal and all is fine, until the next Chronosynch and it happens again. The same issues occur when backuping over the internet using ChronoAgent for my offsite backup. Attached are some screenshots that may be of some help.

Any suggestions?


User uploaded file

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Spotlight permission issue with multiple users - user A can search files from user B

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.