Chmod 777

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
User avatar
Kev
Forum Newbie
Posts: 21
Joined: Tue Aug 25, 2009 9:11 pm

Chmod 777

Post by Kev »

I'm installing OpenX Ad Server on my dedicated linux server and the install instructions says that I MUST chmod some directories to 777 for the software to work correctly.

Is this safe to do? I really don't understand the consequences of this, even though I understand what file permissions are and how they work.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Chmod 777

Post by AbraCadaver »

So what it means is that since anyone can write to the file, if your web server is compromised or if there is a flaw in it or some script that is accessible , then malicious code can be written to this file.

That being said, many programs require this and won't function otherwise. I do it when required.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Post Reply