Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the permissions of Linux digital files

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "what is the permission of Linux digital file". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "what is the permission of Linux digital files"!

Under Linux, when you view the detailed attribute list of all files under a certain path with (ls-l), you will see the operation permission of the file, similar to the string of "drwxr-xr-x".

This string of characters can be divided into four paragraphs, and the structure is "d + file owner operation permissions + file owner group operation permissions + others' operation permissions":

1 paragraph: the letter "d" in the example indicates the directory where the file is located

2, second paragraph: the string "rwx" in the example indicates the file owner's permission to operate on this file.

3. The third paragraph, the string "rmurx" in the example, indicates the permissions of the group of the file owner to operate on these files.

4, paragraph 4, the string "rmurx" in the example, which indicates the operation rights of anyone but 2 or 3 to this file.

Three numbers are usually used to represent the read, write, and execute permissions of a file:

Execution: 1

Write: 2

Read: 4

Write a random number: 755, this three-digit number corresponds to the previous paragraph: 7 corresponds to the second paragraph, 5 corresponds to the third paragraph, and 5 corresponds to the fourth paragraph.

Meaning:

7: indicates the permission of the owner of the file, which means that the owner of the file has the right of life and death to the file, reading, writing and executing freely.

5: indicates the permission of the group of the owner of the file: 4: 1: 5, that is, the group of the owner of the file has read and execute permissions to the file, but does not have write permission.

5: as above, others only have read and execute permissions for the file, but do not have write permissions.

Specific use-- example: chmod 755 file name.

At this point, I believe that everyone on the "Linux digital file permissions is what" have a deeper understanding, might as well to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report