Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

I've just noticed that the contents of some new folders that I created under my users/[myname] folder, are visible to other users. The original ones all have the 'no entry' sign.

enter image description here

How do I make these new folders private, i.e. to the [myname] user only?

share|improve this question

3 Answers 3

up vote 5 down vote accepted

There are a few different ways. Depending on your level of comfort with debugging permission errors, here they are ranked in terms of increasing risk. I'm not going to suggest you backup because you do that already, right?

  1. Whenever you create a new folder, secondary-click on it and "Get Info", then remove read/execute permissions for other users and groups. That should give them the "denied" icon.

  2. Make the above modification for your home directory, unless you have folders that you do want to give access to other users to.

  3. Set a umask as described in Apple's KB HT2202 for user applications:

Create the file /etc/launchd-user.conf with the contents "umask nnn". Do not include the quotation marks and replace nnn with the desired umask value, such as 077.

This will set the user's umask for all applications they launch, such as Finder, TextEdit, or Final Cut Pro, and control the permissions set on new files created by any of these applications.

Note that this will affect all files and folders you create from that point on and may be difficult to debug. As per @Kent's comment below, this will affect all users of the computer, not just your own. You may also need to logout or reboot the computer.


In all of these cases, you may see errors from some applications unable to access some files/folders. It can be argued that these are poorly-designed applications, but if you need to use them you may have to relax the permissions. 1 may be the safest and easiest to revert when/as needed.

share|improve this answer
1  
Two comments on the launchd-user.conf solution. First of all, it will affect all users of the computer. May not be a problem in this case; but, something to make note of. Also, I think you need to log out for these changes to take affect in Finder, etc. –  Kent Jul 10 '13 at 0:18
    
Thanks, edited to add. –  xorbyte Jul 10 '13 at 7:57

Open Terminal and type chmod go-rx ~/LocalSync.

share|improve this answer
1  
This needs to be done for every single folder created, every time. –  xorbyte Jul 9 '13 at 22:42

If you make a new folder in one of the restricted folders, it inherits those permissions and then you can move it up one level in the filesystem hierarchy.

Even easier is to just store the files you create in one of the protected locations that the OS has set up.

This is more about how you are creating the folders than learning how to change things once they are incorrect.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.