Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Spotlight Snooping other user accounts - stop it

I have multiple user account on my machine.
How can I prevent Spotlight from snooping and reporting on other users' files.

I tried using the "Privacy" feature, but apparently you must have write permission in a directory in order to ask Spotlight to not snoop that directory.

In other words, user1 could not prevent spotlight from reporting all the readable files in user2 account.

MACBOOK, Mac OS X (10.4.8)

Posted on Nov 25, 2006 11:53 PM

Reply
16 replies

Nov 26, 2006 6:23 AM in response to C Webber1

Set up user account to access system

Have three accounts on my laptops. Adding a folder/volume in the privacy pane and it won't be listed in another's account.

"Authenticated results
On systems with separate user accounts, Spotlight respects the boundaries of users’ personal files—even though there is only one index per volume. When the Spotlight engine finds a set of results, it uses Mach messaging to communicate with the kernel and determine whether the current user has access to all of the data. Any files that the user isn’t permitted to see drop off the results list. Because Spotlight is tightly integrated with the file system and the kernel, this check takes no additional time. In fact, the whole process is transparent to the user. This mechanism works even if you’re applying
access control lists (ACLs) to your user accounts."

Nov 26, 2006 8:24 AM in response to Daniel Marr

OK, I'm a bit lost on what you're trying to say.

Set up user account to access system


I have 4 user accounts setup. I'm not sure what you mean by "access system".

On systems with separate user accounts, Spotlight respects the boundaries of users


Perhaps I don't understand what you mean by "separate user accounts". Are there any other kind of user accounts?

When logged in as USER1, I search for, say "horse". Spotlight show me documents from USER1 and USER2 areas which contain the word "horse".

I went into Preferences->Spotlight->Privacy and tried to drag the USER2 home directory onto the list places I didn't want Spotlight to search. It would not let me put another user's home directory (or any directory in the list.

Nov 26, 2006 12:05 PM in response to C Webber1

I must say that I haven't used the user account feature for quite. However, I just went a created a few accounts on my laptop and now that I recall why I haven't been using it.

The primary reason is that I couldn't share certain applications unless I purchased another copy. Now, however, after conducting some scenarios, I think I have an excellect reason to employ user accounts and in particular FileVault. And that is security.

One of the primary uses for my laptop is for client presentation. Many times, I have been most reluctant to leave the room with my laptop wide open for prying eyes. So, what I have just done is along with FileVault is to set up 'Client' user accounts, which contains only those things that I would permit a client to see or access.

When you create a User's Account, anything that is created by the user can only be stored in the users account and will not be available to anyone else unless the user puts in the shared folder. In addition, the user cannot modify anything in anyone elses account unless the 'other' user let's you by 'sharing' the item.

Now, from what I can see, when I use Spotlight, it does not identify that the user has not allowed to be shared. However, folders created on a user's desktop can show up, but it can't be opened.

From what I tested, a user cannot just add anything to the Privacy pane, ie., only those items that the user created.

If you are getting a different reaction, please let me know.

Nov 26, 2006 5:48 PM in response to C Webber1

This should do it.

"Note: If your computer has multiple user accounts, any files that reside at the top level of each user's Home folder will also be indexed and searchable by Spotlight, even though they cannot be modified. However, all files and folders located within a user's Desktop, Documents, Library, Music, Movies, and Pictures folders will not be indexed nor can they be searched by other user accounts using Spotlight."

Nov 26, 2006 9:05 PM in response to Daniel Marr

This should do it.

"Note: If your computer has multiple user accounts,
any files that reside at the top level of each user's
Home folder will also be indexed and searchable by
Spotlight, even though they cannot be modified.
However, all files and folders located within a
user's Desktop, Documents, Library, Music, Movies,
and Pictures folders will not be indexed nor can they
be searched by other user accounts using Spotlight."


Daniel:
I know you have the best of intentions, but you're not addressing the problem. I'd like to hear from other users who read and understand my first two posts.

FYI: The reason Spotlight stops at the directories mentioned (in your test) is because the file premissions for the Folders you mentioned are (by default) set to to deny access to other users. If the other user creates a folder with read and execute permissions (e.g. % chmod 755), Spotlight WILL find and report on files in such directories. So if another user stores 10,000 or so documents in a folder with read-premission, there's nothing I can do to stop Spotlight from cluttering up my search results with a bunch of files from that user's folders.

I want to be able to tell Spotlight to NOT go into a readable folder (e.g. 755) which is owned by another user on the machine.

Nov 27, 2006 8:16 AM in response to C Webber1

Your only real option is to tell the other users to store their stuff in a folder that is not accessible-change the permissions, or to use the location criteria available in Cmd-F to limit the search location to your home folder.

In other words-don't use the menubar spotlight. Instead search through the Finder's search window. On the gray bar above the criteria buttons, select 'Home' to limit the results to your home folder.

Nov 27, 2006 9:55 AM in response to C Webber1

I think I understand it. Spotlight is able to find file created by other users but were stored outside of their /Users/<username> folders right?

As far as I understand spotlight, it will not display other Users files as long as they reside within the /Users/<username> folders (except for shared)

If another user saves files outside of their /Users/<username> then yes, it becomes essentially a "public" file accessible to all, unless you change the permissions of it (which won't necessarily exclude it from spotlight)

So, each user should keep their files within their user folders.

Nov 27, 2006 10:20 AM in response to Ken Hart

I think I understand it. Spotlight is able to find
file created by other users but were stored outside
of their /Users/<username> folders right?


Actually, is has nothing to do with being in /Users/<username>.

By default, apple creates Desktop, Documents, Library, Movies, Pictures in the user's home directory, and sets the permissions to 700 (no access to other users).

Apple also creates two other files, Public and Sites, which it defaults the permissions to 755 (read only to other users).

When a user creates additional folders in his home directory, the folders default to 755 (other users can read these folders). Hence, so can (and does) Spotlight. (note, if you want to prevent users from seeing these, CMD-I)

I took Mike N.'s advice, and only use spotlight from Finder. It allow me to specify where I want to search. (Great advice Mike N. Thanks)

Nov 28, 2006 9:39 AM in response to Ken Hart

The only reason a folder would be private-not visible to another user-is the permissions set on that folder. I think the user folder is just a convenient way of looking at the organization of files but there's really nothing special about a user folder that makes it different from any other folder-at least not as far as the system is concerned. Therefore when Spotlight goes out looking for files, its concern is whether or not the user running the search has permission to view the items it has found, not whether or not they are in another user's home folder..

Nov 28, 2006 10:33 AM in response to Mike-N-nahyunil

Agreed.

Perhaps that's why they call it the "Privacy" feature, rather then "Uninterested" feature.

I'm trying to tell Spotlight that I'm "Uninterested" in other users' files.

Spotlight, on the other hand, is offering to NOT go into certain folders I specify. Example: If somebody is sitting with me at work, and we quickly lookup a file with Spotlight, you don't want spotlight to display personal or private stuff.

Unfortunately, Spotlight only lets the owner of the folder exclude that folder from the list of folders to snoop. Maybe in a future version of spotlight, they'll consider an extention to this feature, so that anyuser can "exclude" any folder for his searches. (the onwer still maintains privacy with folder permission settings)

Anyway, the CMD-F (as pointed out by Mike) seem to give me what I need.

Good discussion!

MacBook - D2C black Mac OS X (10.4.8)

Spotlight Snooping other user accounts - stop it

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