Get the App
SLTechnology News&Howtos  ›  Servers  › 

Setting up user isolation of windows server ftp Server

Shulou Source: shulou.com Published: 2022-06-02 09:49:09 11月16日 Update

# what is user isolation?

To give you a brief introduction, to isolate users is to create a login user for the client user on the server, and to create a file directory for each user. When users access, they can only access their own file directory, not other people's directory.

# procedure

# the first step is to install the iis service, which integrates ftp services

Step 1: open the server manager and click add roles and functions, as shown in the following figure

The next step is until the iis manager is hooked, and after the ftp appears, check the hooker and continue until the next step is completed, as shown in the following figure:

# next, create a ftp file directory in a drive other than disk c, and create a localuser for it, and create a folder directory for users who need to access it under the localuser directory. As shown in the following figure, the public file directory is accessible to anonymous users.

/ / sites that need to be visited

/ / create another localuser directory under the ftp directory, and create the home directory to be accessed by the users under the localuser directory, as shown in the following figure

The next step is to create a user's lili,lihong home directory on the server. When visiting, you can log in to your own home directory with lili,lihong. You can't log in to other people's home directories or see other people's home directories.

# I have created this user in advance, as shown in the following figure:

# next, publish the ftp site

# publish the site on the server

Step 1: add a ftp site to the site on the left, as shown in the following figure

Step 2:

Step three

# then select ftp to isolate users on the server

Next, turn on ftp user isolation on the isolated user

Verification and testing:

Enter ftp://192.168.177.20 on the client side, as shown in the following figure, and the login screen appears. You can enter the user you just created on the server. I just created lili and lihong.

# enter the password as shown in the following figure

# as shown in the figure above, lili enters its own users

# try logging in with lihong again

# Anonymous authentication is enabled where ftp authentication is enabled. Anonymous authentication means that you can enter it without entering a password. Its file directory is public, all under localuser, as shown below:

The following verification and test: try to log in as an anonymous user, as shown in the following figure: it goes directly to the anonymous directory without entering any password

# each user can upload and delete files under his or her home directory. By default, the first place to enter is an anonymous directory.

# right-click in anonymous mode and click to log in as follows

Then you can enter the user login interface, enter the user's name, and you can enter.

# summing up user isolation ftp, the difference between user isolation ftp and ordinary ftp is that users can only enter their own home directories, while ordinary ftp can see all user directories after logging in. If one is accidentally deleted, the data is all gone. In fact, you can set permissions. Personal feeling, this user isolation ftp is not bad.

Tags: User directory service isolation file server input login authentication that is site password identity normal next no client time interface Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker vpn Shulou Technology OPPO Reno Apple