Most of the virtual hosts are now disabled: FileSystemObject, because this component provides powerful file system access capabilities for ASP, read, write, copy, delete, rename, etc. Operation (of course, this means to do it under Windows NT / 2000 using the default setting). But after prohibiting this component, the consequences caused by all ASPs that use this component will not be able to run, and cannot meet the needs of customers. How to allow both FileSystemObject components, do not affect the security of the server (ie: Different virtual host users can not use the component to read and write the files)? Here is a method that I have obtained in the experiment, which is described below with Windows 2000 Server as an example. Open the resource manager on the server, right-click the drive letter of each hard disk partition or volume, select "Properties" in the pop-up menu, select the Security tab, you can see which accounts can be accessed to access this partition Volumes and access rights. After the default installation, "Everyone" has full control. Add "Administrators", "Backup Operators", "Power Users", "Users", etc., and give "full control" or corresponding permissions, pay attention, do not give "Guests" group, "IUSR_ machine name" these accounts any permissions. Then, "Everyone" group is then deleted from the list, so that only authorized groups and users can access this hard disk partition, and when the ASP is executed, it is access to the hard disk as "IUSR_ machine name", this is not given here User account permissions, ASP can also read and write files on the hard disk. The following is to set a separate user account to each virtual host user, and then assign each account to a directory that allows its fully controlled. As shown in the figure below, open "Computer Management" → "Local User and Group" → "User", click the right mouse button in the right column, and enter the "user name" according to the actual needs in the "New User" dialog box that pops up. , "Full Name", "Description", "Password", "Confirm Password", and turn the "user next login to change the password", select "Users cannot change the password" and "password never expire ". This example is a built-in account "IUSR_VHOST1" that establishes an anonymous access Internet information service for the user of the first virtual host, ie: all clients use http: //xxx.xxx.xxxx/ to access this virtual host, Identity to access. Enter the completion of the "creation".
You can create multiple users according to actual needs. After the creation is complete, "Close": Now the newly established user has appeared in the account list, double-click the account in the list to further set: "IUSR_VHOST1" in the pop-up: That is, the new account that just created) Properties dialog box: "Subordinate" tab: Just created account default is "Users" group, select the group, click "Delete": [IMG: 67911D44A6] / UploadFiles / NewsPhoto / SAFEA005.GIF> The present now is shown in the figure below, then "Add": Find "Guests" in the "Select Group" dialog box pop-up, click "Add", this group will appear below the text In the box, then click "OK": The appearance is the content shown below, click "OK" to close this dialog box: Open "Internet Information Service" and start setting the virtual host, in this example A virtual host "Set to the example, right-click the hostname, select" Properties "in the pop-up menu: Pop up a" first virtual host property "dialog box, can see the virtual host user from the dialog The use of "f: / vhost1" folder: temporarily, no matter what the "First Virtual Host Properties" dialog is just, switch to "F: / Vhost1" folder, right click , Select the "Properties" → "Security" tab, you can see the default security settings of the folder is "Everyone" full control (depending on the content displayed by different situations, first "allowing" The inheritance of the inheritance of the parent is propagated to the object "The front pair removal:" Security "warning as shown below is popped up," Delete ", point": At this time, all groups and users in the Security tab will Cleared (if not emptied, use "Delete" to empty it), then click the "Add" button.
Add "administrator" as shown in the figure, add the new account "IUSR_VHOST1" created in the previous, will give full control permissions, but also add other groups or users according to actual needs, but must not put "guests" group , "IUSR_ machine name" these anonymous access to the account added!
Switch to the previously opened "First Virtual Host Properties" dialog, open "Directory Security" tab, "Edit" on the anonymous access and verification control: The "Verification Method" other box (below the figure below) Show), click "Edit":