chmod 777chmod 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,To apply chmod 777 recursively to a folder and all its contents, you can use the -R