php-_files_sharing by Russell Ahmed Rex chown -R your_user /file chmod -R u=rwX,g=rwX,o=rX /file chown -R your_user /files chmod -R u=rwX,g=rwX,o=rX /files This will give file and files folder to read and right permission for storing data