In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The difference between FTP service and file sharing service is that file sharing service can only be used for local area network, while FTP service can be used for both local area network and wide area network.
How to build FTP:
Step 1: service Manager
Step 2: click to add roles
Step 3: select a Web service
Step 4: add a FTP server to the role service interface (if you don't add this service, you can't use the FTP feature)
Step 5: click install (do the following)
Go to Service Manager IIS Manager
Step 1: right-click the server
Step 2: choose to add a FTP site
Step 3: enter the name of the site (example: yun) and select the path: e:\ yunsit as the site for uploading and downloading (this folder is created in advance)
Step 4: bind and SSL settings: prerequisite: confirm that the server and client are interconnected, and the network is in the same network segment, select IP address 192.168.100.100, default to automatically start FTP site, SSL (certificate verification): select no SSL
Step 5: enter authentication and authorization information, select authentication as basic, authorize access to specified users, such as zhangsan, and set permissions to read and write
Step 6: click finish (the site is created at this time)
The operation is as follows
Before we go to verify the experiment: let's recall that zhangsan users can read and write in FTP.
We see that the write permission is not checked in the secure Users group that enters the yunsit folder.
If zhangsan users can read and write when we verify later, it means that all you have to do is set permissions in FTP; if not, you also need to set permissions for the folder itself.
How the FTP site is accessed on the client:
The first kind: resource manager
Enter the win10 system and select the resource manager, click the address bar and enter ftp://1921.168.100.100 to hit enter (you need to turn off the firewall in the server2016 system before this operation). At this time, you will pop up the authentication prompt, enter zhangsan, password 123, and click to log in to enter the ftp site.
At this time, the content in the site is empty. We go back to the shared folder yunsit in server2016 to create a TXT file for demo01, click to enter the document input: "thisi is demo" Click Save, and generate this document at this time. We go back to win10 and click Refresh on the site, and the document appears.
At this time, we need this file, download and drag the file directly to the desktop (at this time, it means you have read permission)
As we all know, write permission controls whether the account can be uploaded and deleted. At this time, we change the file name of the desktop to demo02, and add 02 to the text. At this time, we drag the desktop document to FTP and drag it in to indicate that it can be uploaded. At this time, the server side can also see the newly added files, which means that the experiment is successful!
The second kind: browser
Go to the browser, enter ftp://192.168.100.100 in the address bar, enter the user name and password to log in, and you can see the files in the site. At this time, we find that when we open the site using a browser, the files we see can only be downloaded, but there is no upload function.
The third type: command prompt
Enter win10, run cmd, enter ftp 192.168.100.100 to hit enter, prompt to enter account number to enter zhangsan to hit enter, prompt to enter password to enter 123 to hit enter, prompt logged in (enter), enter ftp site but can't see the file, then we need to enter the command dir, prompt whether the file transfer program allows access and choose to allow, get the files in the site.
What do I do if I want to download at this time? If it is not clear, we can enter the command: help, where put is to upload, get is to download, and bye is to exit. In this case, you need to enter the command: get demo01.txt and hit enter to download. At this time, the file is saved under the destination path of C:\ users\ chen. If we want to specify the path to download, for example, download to the d disk, enter the command bye, and enter the command d before logging in again: When you enter the ftp address to log in, the path will be displayed on the d disk, and the downloaded file will be on the d disk.
At this time, we are editing the name of the downloaded document as demo03, and then upload the file, in the login path, enter the command: enter put demo03.txt to show that the upload is successful.
The above experiment is how the ftp site is accessed on the client side.
Anonymous access site settings:
Go to the IIS manager, select the access rules, click Edit, and select all users (if it is an anonymous user, select all anonymous users). For security reasons, we only give read permission.
Go back to win10, go to the resource manager and enter the address of the ftp site. At this time, because it is all users, the Super Admin can log in. For anonymous users, you need to first set anonymous authentication to enable in the authentication in IIS Manager, then check anonymous login in the login interface, and directly hit enter to enter.
If you use the command prompt, the anonymous access operation is as follows:
How to set the type of file upload denied:
In the IIS manager of the site, select request filtering, select reject file extension, such as doc, and then verify the experiment, after entering the site, drag the new doc file to enter the site will prompt no permissions, then the experiment is successful.
All the above is the relevant content of FTP service that I share with you, thank you!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.