[Go to]linux host 644, 755, 777 permissions detailed

Source: Internet
Author: User

Transferred from: http://my.oschina.net/qihh/blog/73135

From left to right, the first digit represents the permissions of the file owner, the second digit represents the permissions of the same group of users, and the third digit represents the permissions of the other user.

From left to right, the first digit represents the permissions of the file owner, the second digit represents the permissions of the same group of users, and the third digit represents the permissions of the other user.

And the specific permissions are represented by a number, the Read permission equals 4, with R, the permission to write is equal to 2, with W, the execution of the permission equals 1, denoted by x;

Through the combination of 4, 2, 1, the following permissions are obtained: 0 (no permission); 4 (Read permission); 5 (4+1 | Read + execute); 6 (4+2 | Read + write); 7 (4+2+1 | Read + Write + execute)

Take 755 as an example:

The first bit 7 equals 4+2+1,rwx, the owner has read, write, execute permission;

The second bit 5 equals 4+1+0,r-x, the same group of users have read, execute permissions but no write permission;

Third bit 5, ditto, is also r-x, other users have read, execute permissions but do not have write permission.

Common Linux file permissions are listed below:

444 r--r--r--
RW-------
644 rw-r--r--
666 rw-rw-rw-
RWX------
744 rwxr--r--
755 Rwxr-xr-x
777 Rwxrwxrwx

Related Article

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.