Setting File and Folder Permissions
In multiuser operating systems like Mac OS X, at the operating system level, permissions control user access to particular files and folders and protect core operating system files from inadvertent edits. At the user level, permissions determine whether other users are allowed to access the files and folders that you create.Each file and folder in the file system is automatically associated with an owner and a group when it is created. At any time, however, the owner or an administrator can choose File > Get Info (Command-I) in the Finder to set permissions. It is useful to remember that permissions limit access to the contents of the file or folder, which can lead to unexpected access issues. You will learn more about access limits later in this lesson.Files and folders have different permissions, because folders are containers for files. The access levels for files are Read & Write, Read Only, and No Access. If you have Read & Write access to a file, you can open the file and change its contents. If you have Read Only access to a file, you can open the file but cannot change its contents. No Access indicates that you cannot open the file.Folders have four assignable access levels. The access levels you can set for a folder are Read & Write, Read Only, Write Only (Drop Box), and No Access. If you have Read & Write access to a folder, you can change the contents of the folder by adding, removing, or renaming files within the folder. If you have Read Only access to a folder, you can open the folder and see what it contains but you cannot add, remove, or rename files in the folder. Write Only (Drop Box) access indicates that you can add files to the folder but cannot see the folder's contents. No Access, of course, means that you cannot add files to the folder nor can you see the contents of the folder.For example, the Public folder in your home folder has Read & Write permissions for Owner, and Read Only for Group and Others. The Drop Box folder within the Public folder has Read & Write permissions for Owner, and Write Only for Group and Others.To view and set the permissions on a file or folder, select the file or folder in the Finder and choose File > Get Info (Command-I). Click the Ownership & Permissions disclosure triangle, and then click the Details disclosure triangle to reveal the current permissions. Use the pop-up menus in this area to change the permissions for Owner; Group, non-owners who belong to a defined group; and Others, non-owners who do not belong to the group. (As a result, you can assign permissions so that Others have a higher access level than the Owner!) Once permissions have been set for a folder, the same permissions can be set on all items in the folder by clicking the "Apply to enclosed items" button.

Groups
In Mac OS X, every user account is a member of at least one group, and every file and folder has group permissions assigned. Groups give permissions to sets of users who are able to perform similar functions. Mac OS X does not provide an application to easily create and manage groups. Instead, it uses some preset groups to give users permissions and functionality. If you need to create and manage groups, you will need to use Mac OS X Server.

Assessing Folder and Document Permissions in Context
Folder and document permissions can present complicated challenges. For example, consider the scenario in the following illustration. If you assign the indicated permissions to a folder and a file within it, can you safely assume that no harm can come to your file?



Setting Permissions on Files and Folders
Permissions can be set on both files and folders, thereby controlling who can access or modify these items. In this exercise, you will modify and compare permissions on three files and three folders on your computer, then see how those permissions interact.
Change the Permissions on Three Folders
Change the Permissions on Three Files
You will now create three text files and change their access permissions.
1. | Open TextEdit (/Applications/TextEdit). |
2. | Create three documents and save them in Chris's Documents folder:
|
3. | Quit TextEdit. |
4. | Open Chris's Documents folder. |
5. | Select the NoAccess.rtf file, and change the permissions for Group and Others to No Access in the Info window. |
6. | Select the ReadOnly.rtf file, and confirm that the permissions for Group and Others are Read Only in the Info window. |
7. | Select the ReadWrite.rtf file, and change the permissions for Group and Others to Read & Write in the Info window. |
8. | Open a new Finder window and navigate to Chris's Public folder. |
9. | Put the NoAccess.rtf file in the Read Write folder. |
10. | Put the ReadOnly.rtf file in the Write Only folder. |
11. | Put the ReadWrite.rtf file in the Read Only folder. |
Test the Folder and File Permissions
These steps will demonstrate the effect of different permissions on files and folders.