Article Title: Differences in File Permission control between Unix and Windows. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In terms of File Permission control, Unix operating systems are quite different from Windows operating systems. In short, Unix File Permission control is much more complex than Windows. Although it is difficult to maintain, it ensures that file control in Unix is much safer than file control in Windows. Next, I will analyze the differences between the two operating systems in File Permission control. If something is wrong, please criticize and correct it.
For example, the basic permission Control Model for both Microsoft and Unix operating systems is shown in. However, they have great differences in implementation.
Difference 1: analysis of differences in File Execution permissions.
Assume that user A has created A file text on the Unix operating system. Generally, user A is the owner of the file text. Ownership has full control over files, that is, read, write, and execute permissions. In the ipvs operating system, there is no such strict control. In Windows, its permissions are only read and write control, but not detailed to the execution permissions. This is an important difference between the two operating systems in File Permission control. Unix controls the execution permissions of files, which is of great help to the security of Unix operating systems. For example, if you have A program development team, its members include user A and user B. They are developing a disk cleanup program. For the sake of security, this script file cannot be executed at will. Otherwise, the disk files may be accidentally deleted. Therefore, user A can be controlled. User B can view or edit the script file but cannot execute it. User A is required for testing. This ensures that the script file is not executed by unauthorized users. However, there is no such control in Windows.
Difference 2: different users in the same group have different permissions.
In Unix systems, users in the same group have different permissions on files by default. For example, A group has users A and B. Now user A creates A test file. By default, user A and user B have different permissions for this file. For example, user A has the permission to read, write, and execute the file. However, user B has only the read and write permissions on the file. However, in Windows, this is not the case. By default, users in the same group of Windows operating systems usually have the same permissions.
In Unix systems, the group has the read and write permissions on files by default. The file owner has a group of permissions, which give priority to the group permissions of the user group. After a user gives up the ownership of a file (for example, transferring the ownership of the file to another user), the user automatically inherits the group permissions of the user group. If user A in this group has created A file text. Later, users added to this group also have read and write permissions on the file. However, you do not have the execution permission. That is to say, generally, only the root account and file owner have the execution permission on the file. Other users do not have this permission. Of course, the file owner and root account can grant this file execution permission to others. Note that only the file owner and root account can change the file permissions. Other users cannot. This is the third difference between the two systems that I will talk about below.
[1] [2] Next page