The following are examples of the implications of common numbers represented by using absolute mode to modify directory permissions:
Mode |
Significance |
777 |
All users have read, write, and execute permissions on the file |
755 |
The file owner has read, write, and execute permissions on the file, and group users and other users need read and execute permissions on the file |
711 |
The file owner has read, write, and execute permissions on the file, and group users and other users have execute permissions on the file |
644 |
File owners can read and write files, group users and other users can read files |
640 |
File owners can read and write files, group users can read files, and other users cannot access files |
Another common symbolic pattern meaning:
W.H.O. |
User type |
Significance |
U |
User |
The owner of the file |
G |
Other |
The group associated with the file |
O |
Other |
All other users |
A |
All |
Quite with Ugo, all the users |
such as Mac Terminal (Class Linux system) modify file Directory command:
Chmod-r o+wx dirname/
Represents a recursive modification dirname the permissions for this folder are writable, and O indicates that this permission is granted to all other users.
-RW ——-(600) Only the owner has read and write permission
-rw-r–r– (644) Only the owner has read and write permission, the group and others only Read permission
-rwx--(700) Only the owner has the right to read, write, execute
-rwxr-xr-x (755) Only the owner has the right to read, write, execute, group and others only read and execute
-rwx–x–x (711) Only the owner has permission to read, write, execute, group and others only execute
-rw-rw-rw-(666) Everyone has access to read and write
-RWXRWXRWX (777) Everyone has access to read and write and execute