ftp安装
1.安装vsftpd
yum install vsftpd
2.修改配置文件
cd /etc/vsftpd/
vim vsftpd.conf
----------------------------------------
anonymous_enable=NO
local_enable=YES
local_root=/home/ftp01
write_enable=YES
local_umask=022
file_open_mode=0755
pam_service_name=vsftpd
ascii_upload_enable=YES
ascii_download_enable=YES
chroot_list_enable=yes
chroot_local_user=yes
chroot_list_file=/etc/vsftpd/chroot_list
-----------------------------------------------
3.新增配置
[root@001 vsftpd]# cat chroot_list
ftp01
[root@001 vsftpd]#
4.新建账户
useradd ftp01
passwd ftp01
5.启动服务
systemctl start vsftpd
systemctl status vsftpd
systemctl enable vsftpd