chmod 777chmod 777 is considered potentially dangerous because you are giving read, write and execute permission on a filedirectory to everyone.chmod a-w file (removes all writing permissions) chmod o+x file (sets execute permissions for other (public permissions)) chmod u=rx file (Give the owner rx permissions,