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 onlyView (u)ser, (g)roup and (o)thers permissions for chmod 777 (chmod a+rwx) or use free on chmod calculator to modify permissions easily.