chmod 777Yes, it is dangerous to set chmod 777 permissions. You should only use chmod 755 for directories and chmod 644 for files. You should onlychmod -R 777 store. The -R (or --recursive) options make it recursive. Or if you want to make all the files in the current directory have all permissions type: chmod -R