1, from the type of file can be divided into three kinds,
With the ls-l query, the "one" begins with the file, the letter "D" begins with the directory (commonly known as a folder), the letter "L" is the beginning of the connection.
2. The remaining 9 are three for a group each group has four symbols consisting of "R", "W", "X", "-" respectively.
R (Read): Delegate Read permission
W (write): Represents the Write permission
X (execuite): Delegate permission to execute
-: The delegate does not have this permission
3. The first group represents what permissions the owner of this file has on this file.
The second group represents what permissions the same group of people in this file have on this file.
The third group represents what permissions a person, other than a group, has on this file.
4. Modify Permissions
You can use command chmod to add permissions to a file
General Modification Method:
chmod +x "filename": Add permissions to Everyone (that is, the owner, the same group, people other than the group) chmod u+x "file name": Add permission to yourself U: On behalf of the user is himself chmod g+x "file name": Add permission to yourself G: Grup is the same group of people chmod o+x "filename": Give yourself permission O: On behalf of other is others |
Professional Modification method
Chome 755 file name
Reason: The Modify permission is divided into three 8 binary to represent the
For example:-rwx r-x---This format, can be divided into 0 or one representation, if shown above-the above is indicated by the "1" indicates that there is a corresponding read and write permission.
|
octal |
111 (RWX) |
7 |
110 (rw-) |
6 |
TD class= "Keylink" >lspan= "1" rowspan= "1" valign= "Top" >101 (r-x)
5 |
100 (r-- |
4 |
011 &nbs p; (-wx) |
3 |
010 (-w-) |
2 |
001 (--x) |
1 |
000 (--- -) |
- Related articles recommended:
- A good crontab tutorial
- Linux View set time zone and time
- How to compile and install OpenSSH under Linux
- This article comes from: Hobby Linux
- This article link: http://www.ahlinux.com/start/base/9503.html
Linux Modify file permission record