Page 1 of 1
folder right permission on a *nix server
Posted: Sat Aug 29, 2009 1:23 am
by irandoct
Dear Friends,
I have a php script installed on my server... i need this script upload files to some directories...
What's the best permission for that directories?
Please explain if possible!
Regards
Mansour
Re: folder right permission on a *nix server
Posted: Sat Aug 29, 2009 2:06 am
by JAB Creations
The lower the permissions that work the better...though I'm not exactly a security expert.

I've seen
way too many public scripts that are all, 'Hey, yeah just set every folder especially the root all to 777!'

I think something like 606 works though it's been a few months since I've had to mess around with file system permissions...mess around with it a bit and see how much you can minimize it before it no longer works.
Re: folder right permission on a *nix server
Posted: Sat Aug 29, 2009 2:16 am
by irandoct
Umm,
what about "746"?
Looking Forward for a security expert!!!
Thanks