March 15th, 2012, 12:52 AM
Locked .php files?
So I just took over a website and i went to update the index.php file and got an error stating I didn't have sufficient access.
I verified that the user account I was using was the owner and all the files are 644. Neither the user nor the root can chmod or chown the files. Its just the .php files that cannot be changed in any way.
How do I fix it so I can? Thanks!
March 15th, 2012, 08:53 AM
What is the exact text of the error message it gives you when you try to do something like touch the file?
March 15th, 2012, 04:34 PM
Sounds like the attributes have been changed on the files. Do an lsattr on the dir. If it has the i attribute then it cannot be modified - although, under root you can use the chattr command to removed the attribute, e.g. chattr -i index.php
The No Ma'am commandments:
1.) It is O.K. to call hooters 'knockers' and sometimes snack trays
2.) It is wrong to be French
3.) It is O.K. to put all bad people in a giant meat grinder
4.) Lawyers, see rule 3
5.) It is O.K. to drive a gas guzzler if it helps you get babes
6.) Everyone should car pool but me
7.) Bring back the word 'stewardesses'
8.) Synchronized swimming is not a sport
9.) Mud wrestling is a sport