zoukankan      html  css  js  c++  java
  • 500 OOPS: vsftpd: refusing to run with writable root inside chroot()

    ftp服务端是vsftpd,本来用得好好的客户端,在今天连上去的时候收到vsftpd的提示:500 OOPS: vsftpd: refusing to run with writable root inside chroot()

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

    突然想到是自己前两天对ftp目录设置里写权限。

    解决办法:

    办法1:用命令chmod a-w /home/user去除用户主目录的写权限,注意把目录替换成你自己的。

    办法2:

    #vi /etc/vsftpd.conf
    添加 allow_writeable_chroot=YES 保存退出

    重启ftp即可。

  • 相关阅读:
    服务器切换
    闭包函数
    函数对象+嵌套
    lvs讲解
    了解python
    rang enumerate
    set-集合功能介绍
    元组-tuple功能介绍
    dict-字典功能介绍
    list-列表功能介绍
  • 原文地址:https://www.cnblogs.com/wangxuchun/p/4388813.html
Copyright © 2011-2022 走看看