[Next] [Up] [Previous] [Contents]
Next: Job Control Up: File Permissions Previous: Dependencies

Changing permissions

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:

{a,u,g,o}{+,-}{r,w,x}filenames

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 execute. Some examples of legal commands are:


mdw@sunsite.unc.edu