The command chmod is used to set the permissions on a file. Only the owner of a file may change the permissions on that file. The syntax of chmod is:
Briefly, you supply one or more of all, user, group, or other. Then you specify whether you are adding rights ( +) or taking them away ( -). Finally, you specify one or more of read, write, and e xecute. Some examples of legal commands are: