Current time: 04-19-2014, 03:07 PM Hello There, Guest! (LoginRegister)

Post Reply 
chmod to 666 not working on specific files
02-20-2012, 02:15 PM
Post: #1
chmod to 666 not working on specific files
I'm trying to recover my business site from a PHP injection hack on the 18th. I decided to scrap the old site and install new, but for some reason, I can't set permissions on the configuration file to 666. When I FTP in to do it, it resets to 444 instantly. The part that's making my head explode is that it worked just fine yesterday on my test site, but now that one isn't working either. All other files I can change to any permission I want, no problem. I have a ticket in, but I'm just needing advice on anything I might be over looking. It's been a long weekend. Sad
Find all posts by this user
Quote this message in a reply
02-20-2012, 03:04 PM
Post: #2
RE: chmod to 666 not working on specific files
Do you really want 666 or 664?

If its on a shared server 666 might be dangerous, I think it's less dangerous in a VPS or dedicated server, but 664 would be more of a standard safe configuration.
Find all posts by this user
Quote this message in a reply
02-20-2012, 03:37 PM
Post: #3
RE: chmod to 666 not working on specific files
(02-20-2012 03:04 PM)LakeRat Wrote:  Do you really want 666 or 664?

If its on a shared server 666 might be dangerous, I think it's less dangerous in a VPS or dedicated server, but 664 would be more of a standard safe configuration.

Yes, I understand the danger. I can't configure it with anything with a 6 in the first digit. 666 = no, 466 = yes, 446 = yes. Frustrating. Especially since it worked just fine yesterday.
Find all posts by this user
Quote this message in a reply
02-20-2012, 03:48 PM
Post: #4
RE: chmod to 666 not working on specific files
Go up a level and see how the directory those files are in is set?
Find all posts by this user
Quote this message in a reply
02-20-2012, 03:50 PM (This post was last modified: 02-20-2012 03:51 PM by laurelsstitchery.)
Post: #5
RE: chmod to 666 not working on specific files
(02-20-2012 03:48 PM)LakeRat Wrote:  Go up a level and see how the directory those files are in is set?

That directory is set to 755. In fact, every other file in that directory can be set to 666, but not this file.
Find all posts by this user
Quote this message in a reply
02-20-2012, 03:59 PM
Post: #6
RE: chmod to 666 not working on specific files
I'm not a pro on this topic, someone else will come along soon I'm sure, but read here: http://wiki.dreamhost.com/Unix_File_Perm...eatures.3F
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: