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 only755 – This permission is mostly used in web server. Owner has all the permissions to read, write and execute. · 777 – Everyone can read write and execute. · 644