hide files or folders to other users

Who can help me ?

All forums I have been reading don't speak of :


on my MacBook Air (with the Mountain Lion OS) I have created several users and given authorizations/sharing.


and I would like to continue to see, open ... some of my files or folders (personal) when I am on my session but that they are NOT even visible on other sessions so that the other users do not know they exist.

I have read that I can hide them but it works in every session (= I cannot access them directly when I am on my own session)


Thank to all for any help

MacBook Air (13-inch Late 2010), OS X Mountain Lion (10.8.1)

Posted on Sep 11, 2012 1:01 AM

Reply
9 replies

Sep 11, 2012 6:38 AM in response to jlasa79

I'm assuming that these folders are either:


a) in the root of your Home folder (ie. /Users/<youruser>/<the_folder_you_don't_want_others_to_see> )


or


b) outside of your Home folder entirely


If it's (a), then unless you can find a third-party utility that only hides folders on a per-user basis, you'll have to move those folders into a folder for which every other user has "No Access" privileges, ie. any of the default Home folders. Then, all the other users will see will be the parent folder, and none of the contents.


If it's (b) then you'll have to create a parent folder, put all your folders into it and make sure the parent folder has "No Access" privileges for all other users but you. If this folder is on a volume other than the boot volume, make sure that, "Ignore ownership on this volume" is unchecked in the Get Info… window.


In both cases, any user selecting the parent folder containing your folders will see only something like this:

User uploaded file

You, on the other hand, will have all the access you need.


HTH.

Sep 11, 2012 6:42 AM in response to jlasa79

To make a file/folder hidden you can do the following...


Launch Terminal.app (it's in /Applications/Utilities) and copy & paste


sudo chflags hidden



Then drag the file or folder you want hidden to your Terminal window.

It will now show the path to the item.

Press Return.


To Unhide:


Type


sudo chflags nohidden


Then drag the file or folder you want unhidden to your Terminal window.

It will now show the path to the item.

Press Return.

Sep 11, 2012 10:32 AM in response to jlasa79

You definitely do not want to hide anything in the Finder. What you're asking for happens automatically, except that the files at the top level of your home folder are visible to other users. Usually that doesn't matter, but you can change it, if necessary, by adjusting the Sharing & Permissions settings in the Info window of your home folder. I recommend that you leave it alone unless you have unusual requirements.

Sep 12, 2012 1:43 AM in response to jlasa79

Thank you all for your messages.


To Linc Davis

It seems I was unclear since what I try to do is :


- on my session I do want to see files and folders that are public, shared, ... AND personal (actually I see all files and folders for I am an admin)

- on other users session I have no problem that they can see public and shared files and folders but I do not want that they see my personal files/folders (not even in the list of the finder)


To macjack

I do not have had time to test your suggestion


To Scotch_Brawth

I'd better that they do not even know the existence of some folders (for example : bank accounts follow up)

In addition I have restricted permissions in the "sharing" (System Preference as well as "Read Information" on the folder itself) to "forbidden access" in general and "deposit only" for "staff"

But they still can see all my files and folders from their session


and I don't understand ... 😕😟

Sep 12, 2012 2:35 AM in response to jlasa79

The situation you're describing is a little confusing. Lets' try to cut through some of the information to the nub.


1) when you say, "session", do you in fact mean, "account"? IOW, you have separate accounts for each individual?


2) What is the purpose of the "Sharing" preference pane in your case? This only exists to allow access to files on the "shared" machine from across a network. Changes made here have no effect on local users. Anyone logging into a remote Mac using your credentials will naturally have full access to all of your folders.


The simple fact is that any folders and files kept inside any of the default folders (except Public) in your Home folder will be completely unviewable by - and therefore completely invisible to - any other user but yourself - see my screenshot above. If you're keeping sensitive folders outside of these default Home folders, then it's no wonder you're having difficulties.

If, on the other hand, you're finding that other users _can_ see inside your default Home folders, then you have a permissions problem. Open Disk Utility from an Admin account, select your boot drive and then Repair Permissions: this should fix that problem. NB: for this very reason, you shouldn't modify the permissions on your root Home folder (ie. the one with the same name as your account) because its permissions will be reverted to defaults whenever you run Repair Permissions (which, if you're wise, you should probably be doing after every point update at least).


HTH.

Sep 12, 2012 4:38 PM in response to Scotch_Brawth

If, on the other hand, you're finding that other users _can_ see inside your default Home folders, then you have a permissions problem. Open Disk Utility from an Admin account, select your boot drive and then Repair Permissions: this should fix that problem.

As Linc noted, that won't fix home folder permissions. To do that, boot with CMD+R keys held down,


This brings up the Repair Utilities screen. On top, in the Menu Bar click the Utilities item then select Terminal.


In the Terminal window, type resetpassword and hit the return key.


The Password reset utility launches, but you’re not going to reset the password. Instead, click on the icon for your Mac’s hard drive at the top. From the drop-down below it, select the user account where you are having issues.


At the bottom of the window, you’ll see an area labeled ‘Reset Home Directory Permissions and ACLs’. Click the Reset button there.


The reset process takes a couple of minutes. When it’s done, quit the programs you’ve opened and restart your Mac. Notice that ‘Spotlight’ starts re-indexing immediately.

Sep 13, 2012 3:34 AM in response to baltwo

THANK YOU all of you for your help.

and sorry for my english ; I am French (from a very nice place inland but not far from the Atlantic Ocean @ La Rochelle) so I tried to translate the menus I had and went sometimes wrong ...


In fact I had a permission issue that I repaired and now, I do not have all what I want (= hide visibility of folder to other accounts) but I live with this after having changed permissions at my home folder level (= my home folder is seen from other accounts but nothing inside)


To baltwo

I tried your boot with CMD+R keys held down but got a locker, typed my password in and .... after 5 to 10 minutes got nothing else


Bonne journée à vous

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.

hide files or folders to other users

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