Linux file and Directory permission descriptions

Source: Internet
Author: User

Permissions for files and directories are divided into: Read, write, execute, permission objects are divided into: creator, the same group as the creator, other users three classes, followed by "-" separated. To modify the permissions of a file or directory use the "chmod 588 file name" For 588 analysis: Each number represents an object, in order of the following: Creator permissions, same group user rights, normal user rights. 1 for the executable permission, 2 for the writable permission, 4 for the readable permission, so 588 in 5=1+4, indicating that the creator permission is executable readable, 8 cannot be divided so it will be displayed illegally. Another quick way to set it up is to use letters:

"A" means all users, "U" means the Creator, "G" means the creator with the same group of users, "O" for other users, "+" for the Add permission, "-" for the cancellation of permissions, "R" for Read permission, "W" for Write permission, "x" for write permission. For example: The chmod a-r file name indicates that all users do not have Read permissions.

Then comes an explanation of total 8, when using LS to see that it is often the number of things that will appear, which refers to the memory of this file or directory. The unit is Kbytes, and it is also noted that the concept of memory in all file systems is "block". This means that memory is always an integer multiple of block. A block occupies a memory size of 4k.

Linux file and Directory permission descriptions

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.