Folder Permissions Apache
Posted
by
user1671777
on Server Fault
See other posts from Server Fault
or by user1671777
Published on 2012-09-14T15:16:41Z
Indexed on
2012/09/16
3:40 UTC
Read the original article
Hit count: 493
I have a site that will need to store file uploads by the user once logged in. Currently I have a folder with permissions opened up, (777), because that was the only way I could get mkdir() to work. When the user uploads a file, the application creates several directories based on the user, in this directory then eventually stores the file.
Couple of questions:
How do I setup the permissions on each of these folders and sub folders so that only logged in users to my site have access to them? Is this even possible?
Is there a more secure way of storing .pdf, word docs, and text files?
© Server Fault or respective owner