First, right-click the file or folder to which you want to obtain permissions --- properties. The following dialog box is displayed. Then, select the "security" tab and click "Advanced ";
Then the advanced security settings menu is displayed:
As shown in the figure, select the "owner" tab and click "edit ";
In the displayed dialog box, select another user and group options:
In the dialog box that appears, enter the current user name (wlg) and click OK, then, select the "replace sub-container and object owner" option below (if this option is not selected, we only have ownership of this folder, and there is no ownership of its sub-folder and the files in it; (You can skip this option if you only delete a single file)
Click "application"> "OK"> "OK;
The following dialog box is displayed. Click the "permissions" tab-change permissions;
In the new dialog box, click --- add --- enter your username --- OK;
A dialog box will pop up. We need to select full control, check the box that is allowed, and click OK;
Next, select the lower part of the permission that can be inherited from this object to replace all sub-object permissions (if this is not checked, you only have the permission for the folder outside, and the folder in it still cannot be "fully controlled ")
Next, click Application --- yes --- OK;
Click "OK", as shown in the following figure ";
Next, click "OK ". In this way, we get the highest permission for this file or folder.