chmod 777chmod 777 is considered potentially dangerous because you are giving read, write and execute permission on a filedirectory to everyone.To apply chmod 777 recursively to a folder and all its contents, you can use the -R