The following command is often used: Example: chmod 777 /etc/squid After running the command, the permissions of the squid folder (directory) are changed to 777 (readable, writable, and executable). If it is Ubuntu system, you may need to add sudo to execute: sudo chmod 777 /etc/squid At the beginning of the story, there will always be a suspense. In the series of jokes that only programmers can understand, there is a classic one: Please describe our country's FL in the most concise language. 754. So, what does 754 mean? What does 754 mean? What does 754 mean? The following is a detailed introduction to the chmod command. In the Linux system, the roles and permissions of each user are divided very carefully and strictly. Each file (directory) has access permission. This mechanism is used to determine whether a user can read, write, execute, and perform other operations on the file (directory) in a certain way. There are three different types of users who operate files or directories: file owners, group users, and other users. The highest bit represents the permission value of the file owner, the middle bit represents the permission value of the group user, and the lowest bit represents the permission value of other users. Therefore, in chmod 777, the three numbers 7 correspond to the above three users, and the permission values are all 7. There are three types of file or directory permissions: read-only, write-only, and executable.
According to the table above, the permission combination is the sum of the corresponding permission values, as follows: 7 = 4 + 2 + 1 Read, write and execute permissions 4 = 4 read-only permission Therefore, everyone understands the meaning of the This command means to grant the read, write and run permissions of the filename file to the file owner, grant the read and run permissions to the group users, and grant the read permission to other users. For more official and detailed explanations, you can use the following command to view: The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM. You may also be interested in:
|
<<: How to connect to MySQL visualization tool Navicat
>>: Vue implements tab label (label exceeds automatic scrolling)
Table of contents 1. Usage 1. Basic usage 2. The ...
I joined a new company these two days. The compan...
The implementation principle of chain programming...
Simple application deployment 1. Directory struct...
1. golang:latest base image mkdir gotest touch ma...
Preface This article mainly introduces the releva...
SQL finds all duplicate records in a table 1. The...
Table of contents 1. How to update in batches Con...
The blogger said : I have been writing a series o...
There are two ways to delete data in MySQL: Trunc...
Table of contents 1. js memory 2. Assignment 3. S...
Table of contents Vue.js 1. Register global guard...
In Ubuntu, you often encounter the situation wher...
HTML Paragraph Paragraphs are defined by the <...
Introduction When talking about distribution, we ...