-1

I was told this would help me chmod directories:

find . -type 'd' -exec chmod 755 {} \;

that worked.

But how can I find php files and chmod them to 644 recursively?

is there a similar command to do that? just files ending in .php?

Thanks

Richard Jones
  • 121
  • 1
  • 2
  • 10

1 Answers1

0

I tried this:

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

and it worked.

glad I did not break anything...

Richard Jones
  • 121
  • 1
  • 2
  • 10