I have a very large and deep directory. I would like to make all of it read only. The problem is I guess I have to distinguish between files (which will get a=r) and directories (which will get a=rx).
How can I do that?
|
I have a very large and deep directory. I would like to make all of it read only. The problem is I guess I have to distinguish between files (which will get How can I do that? |
|||
|
I just found this: |
|||
|
|
|
|||||||||
|
|
|||
|
|
|
The suggestions above did not work for me, all folders were set read-only.
|
||||
|
|
chmod a=rXwhich solves my problem. From theman: (X)execute/search only if the file is a directory or already has execute permission for some user– David B Oct 5 '10 at 8:00