First, allow users to enter a directory to become a "working directory" of the basic permissions:
- Commands that can be used: such as CDs and other commands to transform working directories;
- Permissions required by the directory: The user must have at least x permission on this directory
- Additional requirements: If the user wants to use the LS lookup file name in this directory, then the user also needs R permission on this directory.
Second, the user in a directory to read a file's basic permissions:
- Commands you can use: for example, cat, more, less, and so on in this chapter
- Permissions required by the directory: the user must have at least X permission on this directory;
- Permissions required for the file: The user must have at least R permission on the file .
Third, let the user can modify the basic permissions of a file:
- Available commands: such as the Nano or VI editor;
- Permissions required for the directory: the user must have at least X permission in the directory where the file resides;
- Permissions required for the file: The user must have at least R, w permissions on the file
Iv. Basic permissions for a user to create a file:
- Permissions required for the directory: The user must have w,x permissions in the directory, with a focus on W.
The basic permissions for users to enter a directory and run a command in that directory:
- Permissions required by the directory: the user must have at least X permission on the directory;
- Permissions required by the file: the user must have at least X permission on the file
The relationship between permissions and commands for Linux Learning notes (important)