I copied this from others. I was afraid that the website would hang up, so I recorded here that the above contents are from: http://www.longshannet.com/ne…
Recently, in the process of debugging the website, you need to set read, write, edit, delete and other permissions for a folder or file on the website
Server environment: win2008 64bit IIS7
For the safety of the website, set the read only permission of the website and a certain folder and file, which cannot be edited or deleted. Note: edit file and delete file permission are two permissions!!
Step 1: open IIS, select the website, and then click “authentication” in the function item on the right to see which user group the website belongs to. The permissions of this user group will be set in the later permission settings.
A screenshot of this website is as follows:
It can be seen from the above figure that IUSR permission group controls the access rights of website users
Step 2: right click the website folder and select “Edit permission” to open the folder permission. The security is the same as that in my computer.
After opening the window, if there is no IIS iusrs permission group, click the Edit button to add the IIS iusrs permission group. After adding the permission group, click advanced to open the detailed settings of permissions, as shown in the following figure:
Finally, open the specific permissions in the above figure, and deny the corresponding “create file, write data” (this permission is responsible for the creation and modification of the file) and “delete” permissions (this is responsible for the deletion of the file), then select the “application range” drop-down box to select the application range, and then confirm the application.
Write their own. Net verification procedures, use methods, upload efreer.aspx And CS file, and then in the need to verify the directory window abc.txt File to verify modification permissions. Verification procedure
PS: this function is set to read the editing and reading of the file, not to control the script. If you want to control the dynamic file execution permission of a folder, you need to set the script item in the IIS map