linux owner refers to the file owner; the file owner determines the ownership of the file, and the file owner can also set permissions on his own files to allow or deny access to certain users; the identity of the file in Linux It is divided into three categories, namely the file owner, the group to which it belongs, and others. Each file can independently execute different permissions for different identities.
#The operating environment of this tutorial: linux5.9.8 system, Dell G3 computer.
What is linux owner?
owner, group, others in Linux
Background
One of the more powerful aspects of Linux is its multi-person and multi-tasking environment. Each user may have confidential file data, so different file permissions need to be set according to specific usage conditions. In order to solve this problem, Linux proposes the concepts of users and user groups.
Linux divides the identity of files into three categories, namely the file owner (owner), the group to which it belongs (group), and others (others). Each file can be independently assigned to different Identity execution has different permissions (read, write, execute).
owner, group, others
The file owner determines the ownership of the file, and the file owner can also set permissions on his own files to allow or deny certain users Access.
User groups can be very useful when collaborating in a team. When performing collaborative tasks, some files may need to be shared by multiple users. In this case, the corresponding permissions of the user group need to be set to ensure that all users in the user group have permission to access the corresponding files.
Others can understand it literally. For a file, if the user is not the owner of the file and is excluded from the user group, then the user is given the identity of someone else and therefore does not enjoy the treatment of the user owner and user group member. If you want to access a file, you need to wait until the file's permissions are set for others before you can access it.
In addition to users and user groups, there is also a super user. This user is root. This user is similar to the administrator in windows and can make changes to any file in the system. During specific operations, Use with caution.
Digression
Generally, the accounts and general identities on all systems in Linux, as well as root-related information, are recorded in /etc/passwd in the file. Personal passwords are recorded in the /etc/shadow file. All group names are recorded in /etc/group. Therefore, the importance of these three files is self-evident, and you must be cautious when operating them.
Related recommendations: "Linux Video Tutorial"
The above is the detailed content of what is linux owner. For more information, please follow other related articles on the PHP Chinese website!