Change change mode of all files and folders in CPanel at once?

Viewed 15660

I have a deluxe hosting with GoDaddy and have uploaded WordPress websites in it. However, nowadays someone is hacking into my website (even after changing the cpanel and ftp passwords) and uploading files which include a zip file, and after they extract the zip file it will have N number of files as a result my hosting resource is getting overflown.

I keep on deleting the files and reuploading a fresh copy but they again do the same. Since it's WordPress I have to change permission of a number of folders which is impossible. Please guide me about how to change the permission at once. I also tried FileZilla to change permission but it's shown to be changed in FileZilla and when I check back with CPanel file manager, it's still the same permission.

4 Answers

You can simply use File Zilla and log in with your cPanel credentials. When you right-click, there is an option for file permission; Inside this option, you will find Recursive File & Folder Permissions! Voila.. Job Done!

In my case, I managed to get it done by uploading a simple recursive PHP script to change permissions to all files within the desired directory.

Related