Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other
Author Message
kevinkap
Involved
Involved



Joined: Apr 22, 2006
Posts: 356

PostPosted: Fri Sep 01, 2006 3:20 pm Reply with quote

What are the correct file permission on a linux server? For folders, files etc? html, cgi, php?

Thanks

_________________
Kevin Kappes 
View user's profile Send private message
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Sat Sep 02, 2006 10:22 am Reply with quote

Folders = 755
Files = 644 (html and php should work just fine)
cgi = ? I would start with 644 and see if it works.

If a script needs to write to the file system, the directory that it is writing to might have to be 777. I start there to make sure it works and then I start taking away permissions, starting at the "world" level and keep backing off until it no longer works. That way I know its a good as its going to get.

_________________
Only registered users can see links on this board! Get registered or login!
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website
montego







PostPosted: Sat Sep 02, 2006 10:24 am Reply with quote

Actually, sorry about that, with cgi, you may need the execute bit. Again, I would start, though, from the left and work yourself to the right in terms of setting the execute bit.
 
kevinkap







PostPosted: Sat Sep 02, 2006 12:04 pm Reply with quote

Ok, thanks!
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Security - Other

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©