vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法

Posted crazy-liu

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法相关的知识,希望对你有一定的参考价值。

当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误:

500 OOPS: vsftpd: refusing to run with writable root inside chroot ()

 

这个问题发生在最新的这是由于下面的更新造成的:

- Add stronger checks for the configuration error of running with a writeable root directory inside a chroot(). This may bite people who carelessly turned on chroot_local_user but such is life.

 

从2.3.5之后,vsftpd增强了安全检查,如果用户被限定在了其主目录下,则该用户的主目录不能再具有写权限了!如果检查发现还有写权限,就会报该错误。

 要修复这个错误,可以用命令chmod a-w /home/user去除用户主目录的写权限,注意把目录替换成你自己的。或者你可以在vsftpd的配置文件中增加下列两项中的一项:

 

allow_writeable_chroot=YES

最后重启vsftp服务

 

systemctl restart vsftpd.service

 

最后最后

技术图片

 

以上是关于vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法的主要内容,如果未能解决你的问题,请参考以下文章

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

500 OOPS: vsftpd: both local and anonymous access

vsftpd启动报错:vsftpd:500 OOPS: bad bool value in config file for: anonymous_enable

不关闭seLinux解决vsftpd服务本地用户不能登录问题(500 OOPS: cannot change directory:/home/***

vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法

Debian 安装vsftpd出现500 OOPS: prctl PR_SET_SECCOMP failed的解决办法