Directory permission questions
I was wondering what is the difference between directory execute and read permission?
Also, how do I recursively remove executable permission from a dir, but just apply it to normal files? |
http://www.zzee.com/solutions/linux-permissions.shtml
see 3. Difference in access permissions for files and folders Quote:
|
Quote:
|
It works the other way (making dirs "executable" and leaving files alone
Code:
chmod -R a+X ... |
@Tinkster
No, I was unable to cd into the directory after I did that. Running a+X made it back the way it was, though. |
In that case:
Code:
find -type f -exec chmod a-x {} \; |
Quote:
Finally I got the photos copied from Windows non-executable! |
All times are GMT -5. The time now is 06:03 PM. |