PDA

View Full Version : Moved to new server.... CHMOD ???


Jawelin
06-03-2002, 09:46 AM
Hi. I have many hacks installed, some of them involving direct access to directories (for example, custom avatar and categories, attachments not in db, and so on).

I just moved to another Linux server (php safe mode enabled) and I have many many problems with dir CHMODing...
Question is:
with the standard dir config, doesn't work almost anything; so I noticed it should be better to mod each dir to 0777. Is it safe enough ?
I have vb 2.2.5 with security fix.

Otherwise, HOW EACH directory of the tree should be set ? (I mean: images, admin & mod, avatar, attachments, tmp, and so on...)

Thanks a lot.
Bye

scsa20
06-04-2002, 08:05 PM
well...it depends that's chmod with 777, if you chmod your whole board dir and someone knows PHP outside commands, then they could throw some commands to screw up your board, now, if it's a dir. where only files would be uploaded it, it's safe.

Jawelin
06-05-2002, 01:54 PM
Thanks.
What should be the correct tree configuration ? Entire tree...

scsa20
06-06-2002, 12:13 AM
the basic chmod (if I remember correctly) for a folder is 755

Jawelin
06-06-2002, 10:53 AM
Yes, but if such dir doesn't have write perms (777), I can't upload/create files from php... :(

scsa20
06-06-2002, 08:19 PM
777 is for wirteing to a folder thru. the server, but if the folder is set up to be 755, it's read only......so if you want to upload/creathe files thru. the server itself without downloading it to your system and edit it from there, then just chmod a folder to 777

Jawelin
06-07-2002, 07:22 AM
Thanks.
What about the 'Executable' bit ?
If I moded the uploads dir to 766, even, php couldn't write into.
I think the exec bit for a dir means that dir is browsable by owner, group, others.... not the included files are executable!!!
Is it true ?

:)
Thnx again