实验环境:Ubuntu 20.04 LTS 64位版 (角色:作为局域网内的ftp服务器)
客户机:Windows 10 (客户机不需要任何设置,只要和服务器在一个网络内即可)
In order to study English,this blog is edited by English.
step 1:Check if the server was installed vsftpd already. If not, install vsftpd by using command "sudo apt-get install vsftpd". Then,use command "vsftpd -v" to check the software if it is installed successfully.
step 2:Create a ftp folder in your server,for example,"/home/UserName/Desktop/ftp".The name of the folder is dependent on you.In here,I named it as 'ftp'.
step 3:Modify the file "vsftpd.conf" under '/etc/'.There are too many parameters in this file.You can read it. At the end of the document, add a line as "local_root=/home/UserName/Desktop/ftp".
step 4:Restart the ftp service by using command "sudo service vsftpd restart"
step 5:Type command "ifconfig" in shell to see what the ip address is.
step 6:In client PC, input the URL "ftp://ip" and then input the user name and password to browse.
In this test, I only modify the 'vsftpd.conf' by add a line as ''local_root=/home/UserName/Desktop/ftp".I do not to modify the authority of ftp. So the client can only browse the files in ftp,they can not write it.
As a client user, if you want to upload your file to ftp server ,please uncomment(取消注释) the line "#write_enable=YES".
Note:Each time when you modified the config file,please run "sudo service vsftpd restart" to make it take effect.
Thanks for reading (Although there are too many English syntax errors in this blog).