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 777 -R .* ..[!.]* Bash has this command. shopt -s dotglob to also include hidden files in commands (shopt -u dotglob to disable that behaviour) if you want to stick to