今天在配置VSFTPD过程中遇到两个错误
1是启动失败,通过 SERVICE VSFTPD STATUS 查看到报错
May 02 16:06:58 debian systemd[1]: Starting vsftpd FTP server...
May 02 16:06:58 debian systemd[1]: Started vsftpd FTP server.
May 02 16:06:59 debian systemd[1]: vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
May 02 16:06:59 debian systemd[1]: vsftpd.service: Unit entered failed state.
May 02 16:06:59 debian systemd[1]: vsftpd.service: Failed with result 'exit-code'.
最后找到原因是在VSFTPD.CONF 中配置了 IPV6=YES 改为 NO 或者注释掉,正常启动
listen=YES
#listen_ipv6=YES
第二个问题是 登入FTP 验证用户的时候提示
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
查到原因是
从2.3.5之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误。
要修复这个错误,可以用命令chmod a-w /home/user去除用户主目录的写权限,注意把目录替换成你自己的。或者你可以在vsftpd的配置文件中增加下列两项中的一项:
allow_writeable_chroot=YES
转载于:https://www.cnblogs.com/s-seven/p/8981130.html
最后
以上就是清新冰淇淋最近收集整理的关于vsftpd.service: Main process exited, code=exited, status=2/INVALIDARGUMENT和vsftpd:500 OOPS: vsftpd: ...的全部内容,更多相关vsftpd.service:内容请搜索靠谱客的其他文章。
发表评论 取消回复