Understand linux permissions and linux Permissions
First, let's take a look at users and user groups in linux.
Scenario:The company has two project teams: group A and group B. A, B, and C are members of group A, and A and B are members of group B. For the sake of confidentiality, the progress, documents and procedures in the group are made public in the group. For example, in group A, members in the group can view each other's files, but members in the group have their own drawers with their own private files, not allowed ). The persons in group B are others compared with group. Without the consent of A small group member, you cannot see the information of A, B, or C. There is a boss in charge. He has the right to do anything (including viewing users' drawers ).
This is a portrayal of user groups in linux, a security mechanism for multiple users and multiple processes.
User:A, B, C, A, and B are all users and are the subjects.
User Group:Is composed of one or more user groups.
Others:Member A and member B in Group B are other Members, and vice versa.
Permission attributes of files and folders
In linux, we can run the "ls-l" command to view the properties of files and folders in the current directory.