-1

I uploaded a zip file of tons of PHP files, images, etc to my website. I unzipped it, and now all the permissions are messed up. How can I use Shell to chmod ONLY the directories to 755?

Kenster
  • 23,465
  • 21
  • 80
  • 106
Richard Jones
  • 121
  • 1
  • 2
  • 10

1 Answers1

2

Using find command:

find . -type 'd' -exec chmod 755 {} \;
thanix
  • 1,287
  • 9
  • 5