Changing Permissions

To change the protection on a file, use the "chmod" command. The first argument to the "chmod" command is the protection mode. This is followed by the names of the files to be protected. The protection mode consists of three parts: which class of user to work with (u, g, o, or a), whether to grant (+) deny (-), or set (=) access, and which protection to use. Each of these parts is a single character. For example, to grant read access to your group for all files in your account ending in ".tex," you would use the command: To prevent anyone (including yourself) from reading the file resume, type: Since you own the file, however, you can give read access back to yourself by typing:

Click here to go to the next section.

Or click here to go to the top of the chapter.