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 only777 means the file directory is granted read, write and execute permissions for all three user classes, including the owner, group members, and others.