2

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

1 Answer 1

3

You most likely need the standard program called find.

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .