Http://victorwoo.vicp.net/
Currently, most virtual hosts disable the standard ASP Component FileSystemObject, which provides ASP with powerful file system access capabilities, you can read, write, copy, delete, and rename any files on the server's hard disk (of course, this is done using the default Windows NT/2a8zd_000 ). However, if this component is disabled, all ASP nodes that use this component cannot run and cannot meet customers' requirements.
_ Head> how can we allow the FileSystemObject component without affecting the security of the server (that is, users on different virtual hosts cannot use this component to read or write files from others? Here is a method I have obtained in my experiment. The following uses Windows 2a8zd_000 Server
For example. _ Head> open the resource manager on the server, right-click the drive letter of each hard disk partition or volume, select "attribute" in the pop-up menu, and select the "Security" tab, now you can see which accounts can access this partition (volume) and access permissions. After the default installation, "everyone" has full control permissions. Click "add" to add "Administrators", "Backup Operators", "Power Users", and "users" groups, and grant "Full Control" or corresponding permissions, note: do not grant the "guests" group or "IUSR _ machine name" account any permissions. Then, remove the "everyone" group from the list. In this way, only authorized groups and users can access the hard disk partition. When ASP is executed, access the hard disk as "IUSR _ machine name". This user account is not authorized here. asp
You cannot read or write files on the hard disk. The following is to set a separate user account for each VM user, and then assign each account a directory that allows its full control. As shown in, choose "Computer Management"> "local users and groups"> "users", right-click on the right bar, and select "new user" in the pop-up menu ":
_ Head>
In the pop-up "new user" dialog box, enter "User Name", "Full name", "Description", "password", and "Confirm Password" as needed ", remove the check box before "the user must change the password upon next login", and select "the user cannot change the password" and "the password will never expire ". In this example, create an anonymous built-in account "iusr_vhost1" for the first VM user, that is, when all clients use _ blank> http://xxx.xxx.xxxx/to access this Vm, they are all accessed in this identity. After entering the information, click "CREATE. You can create multiple users as needed. Click "close" after creation ":
_ Head>
Now the newly created user has appeared in the account list. Double-click the account in the list for further settings:
_ Head>
In the pop-up "iusr_vhost1" (that is, the new account you just created) attribute dialog box, click the "affiliated" tab:
_ Head> the created account belongs to the "users" group by default. Select this group and click "delete ":
_ Head> now appears, as shown in. Click "add ":
_ Head> in the pop-up "select group" dialog box, find "guests" and click "add". The group will appear in the text box below, click "OK": _ head>
As shown in, click "OK" to close the dialog box: _ head>
Open "Internet Information Service" and start setting the virtual host. In this example, the "First Virtual Host" setting is used as an example. Right-click the Host Name, select "properties" in the pop-up menu ":
_ Head> A "First Virtual Host attribute" dialog box is displayed. the dialog box shows that the virtual host user uses the "F:/vhost1" folder:
_ Head> switch to resource manager regardless of the "First VM properties" dialog box, find the "F:/vhost1" folder, right-click, select the "properties"> "security" tab. You can see that the default security setting for this folder is "everyone" with full control (the content displayed varies with the situation ), first, remove the check mark before "allow spreading the inherited permissions from the parent to this object:
_ Head> the "Security" warning as shown in is displayed. Click "delete ":
_ Head>
In this case, all the groups and users in the Security tab will be cleared (if not, use "delete" to clear it), and then click "add.
_ Head>
Adding the "Administrator" and the newly created account "iusr_vhost1" as shown in will grant full control permissions. You can also add other groups or users as needed, but do not add anonymous access accounts such as "guests" and "IUSR _ machine name!
_ Head> switch to the "First VM properties" dialog box, open the "Directory Security" tab, and click "edit" for anonymous access and verification control ":
_ Head>
In the pop-up "Verification Method" box (as shown in), click "edit ":
_ Head>
The "Anonymous User Account" is displayed. The default value is "IUSR _ machine name". Click "Browse ":
_ Head> in the "Select User" dialog box, find the newly created account "iusr_vhost1" and double-click:
_ Head>
In this case, the anonymous user name has been changed. In the Password box, enter the password set for this account when you created it:
_ Head> confirm the password again:
_ Head>
OK. Click OK to close these dialog boxes. After this setting, users of the "First Virtual Host" can only access the content in their directory F:/vhost1 by using the FileSystemObject component of ASP. when attempting to access other content, an error message such as "no permission", "Hard Disk not ready", or "5a8zd_00 server internal error" appears.
In addition, if the user needs to read the partition capacity of the hard disk and the serial number of the hard disk, this setting will make it unreadable. If you want to allow it to read the content related to the entire partition, right-click the partition (volume) of the hard disk and choose "attribute"> "security ", add the user's account to the list and grant at least the "read" permission. The sub-directories under the volume have been set to "prohibit the propagation of inherited permissions from the parent class to this object", so the permission settings of the sub-directories below will not be affected.