chmod problems with setting others to read

4

1

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

Posted 2009-09-16T11:30:57.763

Reputation: 1 123

Answers

8

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

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

Kim

Posted 2009-09-16T11:30:57.763

Reputation: 2 238

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

Posted 2009-09-16T11:30:57.763

Reputation: 96