4

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?

Yacoby
  • 1,223

2 Answers2

8

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

find . -type d -exec chmod o+x {} \;
Kim
  • 2,418
1

opening folders is not reading them but rather executing them (in terms of priviliges) so Kims anwser consering setting execute flag is correct (+x)

groblus
  • 96