Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I run chmod 770 ./folderName, then users who are not the owner or in the group owning ./folderName (i.e. users in the “others” category) cannot access ./folderName/folderB or ./folderName/fileC, even after running:

chmod 777 ./folderName/folderB 
chmod 777 ./folderName/fileC

Right? Does that rule applies to all Linux distributions? Thank you.

share|improve this question
up vote 6 down vote accepted

That's correct. Removing execute permission will prevent access to the directory and all subdirectories, even if subdirectories are more permissive.

This will probably hold true for anything Unix like (and it may even be a POSIX requirement).

share|improve this answer
IIRC, then yes, it is both in SUS and POSIX. – Juliano Jan 31 '11 at 5:06
To be precise, they now can't go through folderName (no x permission) to get at the file. They also can't list its contents (no r) nor delete the file, rename stuff or create new files (no w). – vonbrand Jan 15 '13 at 23:55

Your Answer


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.