Urgent: Folders and Files Permission(chmod) Problem!

WebHour.net

Registered
Feb 23, 2006
1
0
151
Hello all,

My server have php/apache injection yesterday and changed all the files and folders to chmod 777, but when i try to create new folder using file manager -> cpanel, by default the folder should be chmod 755 under public_html, but now the folder is automatically set to 777 and even others folders and files also having the same problem, for example i create new account through WHM, all folders n files are chmod 777.

May i know how to fix it back by default ??

Thanks.
 

AndyReed

Well-Known Member
PartnerNOC
May 29, 2004
2,221
4
193
Minneapolis, MN
WebHour.net said:
My server have php/apache injection yesterday and changed all the files and folders to chmod 777, but when i try to create new folder using file manager -> cpanel, by default the folder should be chmod 755 under public_html, but now the folder is automatically set to 777 and even others folders and files also having the same problem, for example i create new account through WHM, all folders n files are chmod 777.
You'll have to clean up your server from the offending tools. You also need to run rkhunter and chkrootkit and see if your server is not compromised.