Linux – chmod problems with setting others to read

chmodlinuxthunar

I have a directory tree with the permission for others as none. I need to change it to read.

I execute this command:

chmod -R o+r My\ Dir

However, it doesn't seem to work for directories, as apache cannot access the files within them. When I open the permissions tab for the directory in Thunar, it says:

Folder permissions are inconsistant and you may not be able to work with files in this folder.

It also has a button to fix it, but I can't do this for all the directories (as there are too many)

What am I doing wrong?

Best Answer

You need to set the directories o+x. EDIT: To do this recursively, type

find . -type d -exec chmod o+x {} \;
Related Question