I used command to delete all files modified within last day.

But is there a command that can go through all PHP files and all directories and modify them back to standard permissions that's safe for web in one shot instead of me going through each directory?

I'm guessing 644 for PHP files and 755 for directories?

Thanks! Scott

up vote 3 down vote accepted

You most likely need the standard program called find.

find -name "*.php" -type f -exec chmod 644 \{\} \;

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.