Differences between CHMOD 755 and 777?

igowerf

Diamond Member
Jun 27, 2000
7,697
1
76
I'm trying to set up Invision Board on my website right now and the uploading features won't work unless my uploads folder is set to 777. Is it dangerous to have my uploads folder set to 777?
 

skyking

Lifer
Nov 21, 2001
22,628
5,738
146
22




Seriously, I would approach the problem from the chown side of things. If you have a www user, he should own that file.
 

nightowl

Golden Member
Oct 12, 2000
1,935
0
0
755 gives the groups and everyone the right to read and execute the file. They cannot write to the file. 777 would permit writing to the file by the group and everyone. Also, with both, the owner has full control over the file.
 

ultimatebob

Lifer
Jul 1, 2001
25,134
2,450
126
Hmm. You might want to read up on UNIX a bit more before you try hosting an internet-facing server with it.

Nothing personal, but if you're giving full read/write access to directories on your web server, your server probably has a bunch of other security holes that you're not aware of. Make sure to do your homework, or your server is going to get 0wned pretty quickly.