The relationship between permissions and commands for Linux Learning notes (important)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.