欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

如何修复vsftpd中的"500 OOPS: vsftpd: refusing to run with writable root inside chroot"问题

最编程 2024-08-12 17:57:05
...

问题描述:
    登陆vsftpd后,上传文件提示500 OOPS: vsftpd: refusing to run with writable root inside chroot ()


问题原因:

    vsftpd对chroot的根目录加强了检查,禁锢根目录后,如果根目录有写入权限,则会出现此提示。


解决方案:

    个人推荐第一种。

    1.在配置文件中增加一行:

        #vim /etc/vsftpd/vsftpd.conf

            allow_writeable_chroot=YES


    2.更改根目录的权限:

        假设根目录为/var/ftproot

        #chwon a-w /var/ftproot