Linux 下vsftpd 错误场景运维记录
Linux 下vsftpd错误场景运维记录。
·
Linux 下vsftpd 错误场景运维记录
Q1 没有可用软件包 db4-utils
安装 epel源
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
Q2 登录报错
500 OOPS: vsf_sysutil_bind
500 OOPS: priv_sock_get_int
解决方法:
1.关闭selinux
2.echo 'seccomp_sandbox=NO' >> /etc/vsftpd.conf
會自動用到 seccomp 這個 kernel module
3.PASV端口数量少
由:
pasv_min_port=52000
pasv_max_port=52019
改成
pasv_min_port=52000
pasv_max_port=52119
4.重启服务
#FTP服务启停
/etc/vsftpd/vsftpd52030.conf
systemctl enable vsftpd52030.service
systemctl start vsftpd52030.service
Q3.如何配置主动模式
/etc/vsftpd.conf
pasv_enable=NO
默认为YES,即被动模式
Q4:Starting vsftpd for vsftpd: 500 OOPS: unrecognised variable in config file: allow_writeable_chroot
修改默认的ftp用户目录权限
更多推荐




所有评论(0)