vsftpd 配置-掉坑记
教程来源
linux公社

–更改前–
listen=NO
listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
#local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#deny_email_enable=YES

(default follows)

#banned_email_file=/etc/vsftpd.banned_emails

chroot_list_enable below.

#chroot_local_user=YES
#chroot_local_user=YES
#chroot_list_enable=YES

(default follows)

#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES

Customization

secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=vsftpd

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO

utf8_filesystem=YES

#############################################################################################
userlist_file=/etc/vsftpd.user_list

userlist_enable=YES
userlist_deny=NO

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
错误演示
root@bananapi:/home/hyqf# service vsftpd status
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Sun 2020-08-02 15:27:21 UTC; 3min 4s ago
Process: 5992 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
Process: 5993 ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf (code=exited, status=2)
Main PID: 5993 (code=exited, status=2)

Aug 02 15:27:21 bananapi systemd[1]: Starting vsftpd FTP server…
Aug 02 15:27:21 bananapi systemd[1]: Started vsftpd FTP server.
Aug 02 15:27:21 bananapi systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
Aug 02 15:27:21 bananapi systemd[1]: vsftpd.service: Failed with result ‘exit-code’.
Aug 02 15:27:23 bananapi systemd[1]: vsftpd.service: Unit cannot be reloaded because it is inactive.


##################################################################################################
正确

修改后
listen=YES
#listen_ipv6=NO
anonymous_enable=NO
local_enable=YES
write_enable=YES
#local_umask=022
#anon_upload_enable=YES
#anon_mkdir_write_enable=YES
dirmessage_enable=YES
use_localtime=YES
xferlog_enable=YES
connect_from_port_20=YES
#chown_uploads=YES
#chown_username=whoever
#xferlog_file=/var/log/vsftpd.log
#xferlog_std_format=YES
#idle_session_timeout=600
#data_connection_timeout=120
#nopriv_user=ftpsecure
#async_abor_enable=YES
#ascii_upload_enable=YES
#ascii_download_enable=YES
#ftpd_banner=Welcome to blah FTP service.
#deny_email_enable=YES

(default follows)

#banned_email_file=/etc/vsftpd.banned_emails

chroot_list_enable below.

#chroot_local_user=YES
#chroot_local_user=YES
#chroot_list_enable=YES

(default follows)

#chroot_list_file=/etc/vsftpd.chroot_list
#ls_recurse_enable=YES

Customization

secure_chroot_dir=/var/run/vsftpd/empty

pam_service_name=vsftpd

rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO

utf8_filesystem=YES

#############################################################################################
userlist_file=/etc/vsftpd.user_list

userlist_enable=YES
userlist_deny=NO

++++++++++++++++++++++++++++++++++++++++++++
root@bananapi:/home/hyqf# service vsftpd start
root@bananapi:/home/hyqf# service vsftpd status
● vsftpd.service - vsftpd FTP server
Loaded: loaded (/lib/systemd/system/vsftpd.service; enabled; vendor preset: enabled)
Active: active (running) since Sun 2020-08-02 15:30:37 UTC; 1s ago
Process: 6031 ExecStartPre=/bin/mkdir -p /var/run/vsftpd/empty (code=exited, status=0/SUCCESS)
Main PID: 6032 (vsftpd)
Tasks: 1 (limit: 2135)
Memory: 440.0K
CGroup: /system.slice/vsftpd.service
└─6032 /usr/sbin/vsftpd /etc/vsftpd.conf

下次记得注释掉ipv6选项

vsftpd 配置-掉坑记相关推荐

  1. nginx basic auth配置踩坑记

    nginx的basic auth配置由ngx_http_auth_basic_module模块提供,对HTTP Basic Authentication协议进行了支持,用户可通过该配置设置用户名和密码 ...

  2. xrandr 只有一个显示屏_xrandr – 多屏幕不同DPI配置踩坑记

    Linux平台上的多屏幕支持一直不像Windows和Mac那么友好.近日在配置多屏幕不同DPI,实现不同比例缩放时碰到了麻烦.本博记录一下解决的思路和解决方案,供日后参考.虽说并不完美,但不影响使用. ...

  3. libtorch+YOLOV5配置踩坑记

    电脑配置: CPU:Intel i7-10750H 内存:16G 显卡:GeForce GTX 1650 Ti(4GB显存) 操作系统:Windows 10 家庭中文版 CUDA:10.2 CUDNN ...

  4. stm32f103c8t6掉坑记

    从网上下载了一个小程序,点亮LED,竟然没跑起来,查了很久也没找到原因,最后发现使用了jtag的引脚,但没有在程序中关闭JTAG引脚的调试功能. GPIO_PinRemapConfig(GPIO_Re ...

  5. Security配置踩坑记

    Security登录认证,用户名和密码参数名默认为username和password,因我登录的密码参数名设置为userpwd,故账号密码不正确时被未登录拦截器拦截

  6. 安装sql server踩坑记【sql2000程序安装配置服务器失败】

    安装sql server踩坑记 安装程序配置服务器失败.参考服务器错误日志和 C:\WINDOWS\sqlstp.log 了解更多信息. 在C:\Program Files\Microsoft SQL ...

  7. docker mysql配置 丢失_Docker 从入门到掉坑

    Docker 介绍 简单的对docker进行介绍,可以把它理解为一个应用程序执行的容器.但是docker本身和虚拟机还是有较为明显的出入的.我大致归纳了一下,可以总结为以下几点: docker自身也有 ...

  8. 【SAP PO】X-DOC:SAP PO 接口配置 REST 服务对接填坑记

    X-DOC:SAP PO 接口配置 REST 服务对接填坑记 1.背景 2.PO SLD配置 3.PO https证书导入 1.背景 (1)需求背景: SAP中BOM频繁变更,技术人员在对BOM进行变 ...

  9. python从入门到实践django看不懂_Python编程:从入门到实践踩坑记 Django

    <>踩坑记 Django Django Python 19.1.1.5 模板new_topic 做完书上的步骤后,对主题添加页面经行测试,但是浏览器显示 服务器异常. 个人采用的开发环境是 ...

最新文章

  1. 手机桌面隐藏大师_受够了内置主题?扒一扒Windows 10隐藏主题
  2. bzoj 4488: [Jsoi2015]最大公约数
  3. 210板wince键盘驱动分析和移植
  4. 怎样用c语言输出一个函数图像,请教 怎么才能用C输出一个函数的图像?大侠 帮帮忙啊...
  5. iOS内存管理机制解析
  6. Day01 - 打开Linux大门
  7. 用例驱动的需求过程实践
  8. Windows11 + Linux子系统(ubuntu)体验(篇一)
  9. 无线领夹式麦克风方案,专门为USB-C接口手机打造的直播方案
  10. ListView优化
  11. 使用spss求标准化的线性回归方程
  12. 什么样的作品才能上抖音热门?
  13. 气象数据统一服务接口(MUSIC)简介
  14. Shader step函数实现线条拼色
  15. JavaScript —— 生成随机数
  16. [Linux] 10. shell编程基础《updating》
  17. 阿里智能化接口测试平台--暴雪
  18. BZOJ1226【SDOI2009】学校食堂
  19. 1688API的简单调用
  20. 女人最该记得的100本书的100句话

热门文章

  1. 关于C++的建议,仅仅为了规范代码(二)
  2. python类定义变量_python类变量与__init__声明变量的区别
  3. print python 带回车_python标准库threading源码解读【二】
  4. 计算机口令管理,农村信用社联合社计算机账户与口令管理办法
  5. 集合类和JAVA多线程
  6. mysql ssl编译_centos编译安装配置支持ssl加密的mysql replication
  7. 基于Java的智能问答系统
  8. python re 模块
  9. 【转】javascript判断浏览器是不是IE
  10. MySQL latch小结