How to set folder permissions to allow 777 for all files
I have an ftp folder in which i ftp files into. I want to be able to open these files from a browser (.pdf, jpg, etc..) without setting individual permissions. How can I set the folder up to allow permissions of 777 to be on all files in it?
|
chmod -R 777 /whatever/director/* should work
|
and it did. thanks!
|
A more generic way to do it is:
find /whatever/folder/ -type f -exec chmod 666 {} \; This is good to know because you can use it anytime you have a tree of files you want to work on, even if the application doesn't have a "-R" type of switch like chmod does. |
All times are GMT -5. The time now is 10:46 AM. |