8, September 2008

What are the dangers of setting directory to 777? - webmaster forum

 
Webdigity webmaster forums
This forum shares its ad revenue with its members!
[ Home | Help | Search | Forum's Shop | Archive | Login | Register | Webmaster Directory ]
Webdigity Webmaster Forums  >  Web Development  >  Security
Topic: What are the dangers of setting directory to 777?
« previous next »
Pages: [1] Print

Author Topic: What are the dangers of setting directory to 777?  (Read 504 times)
I will send you to /dev/null/
**
Posts: 78
140 credits
Members referred : 0

FunAndEducational.com


« on: Oct 27, 2007, 10:13:44 PM »

I'm looking for articles or explanation as to the dangers of setting a directory to 777.  Are there times when it is necessary to set to 777?  Such as when PHP has to write to directory for example?
I am a metal monkey!
Administrator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 8037
41179 credits
Members referred : 3



« Reply #1 on: Oct 27, 2007, 10:17:22 PM »

php can write a directory if the apache user (or any other user that php runs as) has rights to write.

So the correct command would be :

Code:
chmod apache:apache /path/to/dir

On the other hand you may not have access to run this command, so a chmod 755 will be probably ok.

Trial and Error my two best teachers Cool
Join us @ facebook Visit through proxy

Last blog : MIA - Where Nick and Tim
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6309
38674 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 28, 2007, 10:12:31 AM »

the normal value for a directory is 755, but since a lot servers with control panels are bad configured you need to set those directories to 777

don't worry about they are not accessible from outside if the server has additional security Smiley

giving the right permissions is a hard task...


Last blog : Is your website is down? Know before your visitors do!
Trackback URI for this entry : http://www.webdigity.com/trackback.php?topic=7300
Tags : 777 security Bookmark this thread : Digg Del.icio.us Dzone more....

Topic sponsors:
Get a permanent link here for $1.99!


Pages: [1] Print 
Webdigity Webmaster Forums  >  Web Development  >  Security
Topic: What are the dangers of setting directory to 777?
« previous next »
Jump to:
User Area
Welcome, Guest. Please login or register.
Did you miss your activation email?
Sep 08, 2008, 09:21:23 AM





Login with username, password and session length

Donate to our community, and get a permanent link back to your site!

Donate to our community, and get a permanent link back to your site!


Forum Statistics
Total Posts: 36.302
Total Topics: 7.479
Total Members: 3.908
Tutorials : 56
Resources : 143
Designs : 220
Latest Member: top10php

24 Guests, 4 Users online :

5 users online today:



Readers

Web Design Gallery · Whois Lookup · Pagerank · Tag Browsing · Lo-fi version · Syndication · Webmaster forum history · Advertise
Developed by HumanWorks © 2005 - 2008 Webdigity webmaster community · sublime directory
Webdigity Webmaster Forums | Powered by SMF 1.0.12. © 2001-2005, Lewis Media. All Rights Reserved.