LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to set folder permissions to allow 777 for all files (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-set-folder-permissions-to-allow-777-for-all-files-499739/)

s0n|k 11-08-2006 10:03 AM

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?

DeusExLinux 11-08-2006 10:07 AM

chmod -R 777 /whatever/director/* should work

s0n|k 11-08-2006 10:13 AM

and it did. thanks!

jgombos 11-08-2006 10:26 AM

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 05:21 PM.