LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   change file permission including subdirectories (https://www.linuxquestions.org/questions/linux-newbie-8/change-file-permission-including-subdirectories-901515/)

windstory 09-07-2011 12:10 AM

change file permission including subdirectories
 
My site files' permission is messed, so could not load any image files.

The web hostimg company said republish every files through ftp, then the permission problem should be fixed.

But about 80% of files are uploaded, unfortunatelly I could not see any image files on web page.

So, is there any program or script which change permission of program files - especially for php ( 755 to 644)?

EricTRA 09-07-2011 12:28 AM

Hello,

Have a look at the man page for chmod:
Code:

man chmod
which can be used recursively to descend into subdirectories. Also check ownership of the files to see that the correct user has permissions.

Kind regards,

Eric


All times are GMT -5. The time now is 05:41 PM.