• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

Chmod 777

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
3 posts • Page 1 of 1

Postby kirpi » Sat Apr 29, 2006 2:25 pm

I've head and read many times that chmod 777 is just like giving the server key to any hacker passing by.
As a newbie, I now ask: are you sure I have to set 777 for a couple of directories?

Luigi
kirpi
New member
 
Posts: 1
Joined: Sat Apr 29, 2006 1:51 pm
Top

Postby phpfreechat » Sat Apr 29, 2006 5:59 pm

You have two solutions:
1. use the auto-extractible setup, then you don't need to give writting right to your webserver because it will unzip the files itself.
2. upload the unziped files on your webserver : you must then give writting rights (chmod 777) on the data/public and data/private directories.

Anyway, don't worry, "chmod 777" on data/public and data/private directories will not alter your webserver security.

regards,
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby Munk » Sat Apr 29, 2006 8:51 pm

actually, depending on what user your webserver runs as, you can get away with either 775 (this is what i'm doing) or 755, if the webserver process user owns the directories.

realistically, any directory that is both writeable and is not excluded from running scripts (perl,PHP, whatever) via httpd.conf is a security risk. The easiest way to solve that is just to exclude your /data dir from the directories allowed to execute scripts, so if someone did manage to upload a malicious script, the webserver would just treat it as a textfile and display it as plaintext rather than executing it.
Munk
New member
 
Posts: 4
Joined: Sat Apr 29, 2006 12:43 am
Top


Post a reply
3 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 11 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub