chmod 777chmod 777 is considered potentially dangerous because you are giving read, write and execute permission on a filedirectory to everyone.The reason 777 is bad is because other gives permissions to anyone who has access to your computer: for example, if you're hacked, the hacker