1、sudo apt-get install vsftpd

2、修改配置文件 sudo gedit /etc/vsftpd.conf
write_enable=YES
ls_recurse_enable=YES
local_enable=YES
chroot_local_user=YES
chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list
anonymous_enable=NO
ascii_upload_enable=YES
ascii_download_enable=YES
use_localtime=YES

# 最后加入

allow_writeable_chroot=YES

3、sudo gedit /etc/vsftpd.chroot_list 新增用户名

4、sudo chmod 777 /ftpdir 修改ftp目录权限

5、重启ftp服务 sudo /etc/init.d/vsftpd restart

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2021-12-13
  • 2022-12-23
  • 2022-12-23
  • 2022-01-23
猜你喜欢
  • 2022-01-16
  • 2022-12-23
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2021-04-22
  • 2021-10-10
相关资源
相似解决方案