(3) Build vsftpd on linux ftp server

Use vsftpd to build an ftp server.

1. Install vsftpd

sudo apt-get install vsftpd

2. Modify the configuration file

cd sudo vi /etc/vsftpd.conf
listen=YES
#匿名用户登录允许打开
anonymous_enable=YES
local_enable=YES
#打开写权限
write_enable=YES
local_umask=022
#匿名用户上传权限打开
anon_upload_enable=YES
#匿名用户创建目录权限打开
anon_mkdir_write_enable=YES
#添加匿名用户根目录(自己指定)
anon_root=/home/luffy/anonFtp

3. Access the ftp server

(1) Under windows, open my computer and enter in the path bar:

ftp://FTP服务器IP地址

Username: anonymous
Password: (empty)
(2) Enter in the linux command line:

ftp FTP服务器IP地址
例:ftp 192.168.1.1

Others are the same as above, exit input:

bye

Guess you like

Origin blog.csdn.net/qq_23844501/article/details/111820545