The following table lists and describes the permissions that you can give to each user class for a directory.
Table 4–2 Directory Permissions
Symbol |
Permission |
Description |
---|---|---|
r |
Read |
Designated users can list files in the directory. |
w |
Write |
Designated users can add or remove files or links in the directory. |
x |
Execute |
Designated users can open or execute files in the directory. They also can make the directory and the directories beneath it current. |
You can protect the files in a directory (and in its subdirectories) by disallowing access to that directory by setting restrictive file permissions. Note, however, that superuser has access to all files and directories on the system.