CSmith1128 Posted May 28, 2007 Share Posted May 28, 2007 i need some help with folder restrictions. i have a site where users can leave comments/feedback. i have the body of the comment written to a text file. so, when the user hits "submit comment/feedback", the text is written to a text file. i also have it set up so the user can click a link to delete the file that was written. i want to know what folder settings i should use that will allow the users to edit, write, and delete their text files through links/ forms on my site. right now i have it set up to 0777, but i know that setting is unsecure. which setting should i use to accomplish this and is there anything spcecial i have to write in the code to use this restriction? thanks chris Quote Link to comment https://forums.phpfreaks.com/topic/53322-folder-restrictions/ Share on other sites More sharing options...
chronister Posted May 28, 2007 Share Posted May 28, 2007 I may be wrong, but 0777 is what you need set to allow this to happen. That gives owner, group and world read, write and execute permissions. The main key is that world needs to have write access to delete files in a directory. As I said, I may be wrong, but I don't think I am. I have an upload document script that allows people to upload files. The directory that the file is moved to has to be 0777 in order for the script to work. Quote Link to comment https://forums.phpfreaks.com/topic/53322-folder-restrictions/#findComment-263533 Share on other sites More sharing options...
trq Posted May 28, 2007 Share Posted May 28, 2007 664 should suffice. Quote Link to comment https://forums.phpfreaks.com/topic/53322-folder-restrictions/#findComment-263537 Share on other sites More sharing options...
trq Posted May 28, 2007 Share Posted May 28, 2007 Or better yet, 660. Quote Link to comment https://forums.phpfreaks.com/topic/53322-folder-restrictions/#findComment-263538 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.