Add FTP site in IIS 7 and set specified user access

1. Enable FTP and IIS services:

2. Add a new user:

Open the computer management interface:

Expand Local Users and Groups:

Email Click "User" -> Click "Create New User":

Enter the username and password in the Create New User dialog, and set the password update policy:

In order to avoid trouble, I directly set "user cannot change password" and "user password never expires".

3. Configure the new user:

Right-click to create a new user in the user group and open the Properties dialog box:

Delete Users and add the Guests Group:

 

After setting it looks like this:

In fact, the Guests group is originally insecure, but it is better than the Users group at least. It is best to create a new group dedicated to FTP sites before creating users.

Because Win7 prohibits the Guests group by default, so we have to enable this group. Just remove the "Account is disabled" checkbox:

4. Create the FTP server site:

Enter "iis" in Windows, select the first program to open the IIS Manager interface:

Expand the Site folder under the machine name, right-click and select "New FTP Site":

5. Enter basic site information:

6. Configure site binding and SSL settings:

The IP address I choose is the IP of the machine, and this IP should be fixed.

Set the self-starting FTP site, so that the ftp site will be opened after each boot.

Then setup does not require SSL verification.

7. Configure authorization information:

I am here to authorize the specified user "vicky", and have read and write permissions. (Because the project needs to write content to this FTP site)

If you are just testing, select "All users" in "Allow access to", and then give read access only.

The built site looks like this:

Set how this site is linked:

Test if the setup is successful:

8. Create a new file under the FTP site Path path for testing:

9. Configure folder permissions:

Organization->Properties->Security->Advanced->Change permissions:

Add the user created before: (Note that selecting location is the domain we selected when we created this user, I directly select the machine name here, because this is the domain I selected before. Then click Check Name, the system will automatically put the username on domain name)

After clicking OK, Tianchu selects the permission dialog box. In the dialog box, select the permissions according to the actual needs of the project. Generally, don't give so many permissions like me:

After adding, there is one more instance with permission:

The above settings can also be opened from an FTP site:

 

10. Test Site:

Enter ftp://ip address : port on this computer or other computer and press Enter:

A login dialog box will pop up, and you need to enter the specified username and password to view the contents of the FTP site:

What you see after logging in:

 

Remark:

If you want to set up anonymous access to this site, check out my other article:

https://my.oschina.net/u/942203/blog/1796864

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325019767&siteId=291194637