14, February 2012

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

 
Webdigity webmaster forums
[ 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
Instabuck - The easy way to sell digital products online

Author Topic: What are the dangers of setting directory to 777?  (Read 2567 times)
Hehe. I made your website....
**
Posts: 85
194 credits
Members referred : 0

FunAndEducational.com


« on: Oct 27, 2007, 09: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: 5779
46271 credits
Members referred : 3



« Reply #1 on: Oct 27, 2007, 09: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 or twitter

Last blog : Butterfly Marketing 2.0
Global Moderator
Community Supporter ?
Jedai Sword Master
*****
Gender: Male
Posts: 6691
34714 credits
Members referred : 374


It's time to use PHP5!


« Reply #2 on: Oct 28, 2007, 09: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 : A new Wordpress theme for our blog
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....

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?
Feb 14, 2012, 09:59:18 pm





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!






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