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,View (u)ser, (g)roup and (o)thers permissions for chmod 777 (chmod a+rwx) or use free on chmod calculator to modify permissions easily.