Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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
add comment

1 Answer 1

up vote 4 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
add comment

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.