vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法
2016-03-09 08:21
776 查看
当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误:
[html] view
plain copy
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
这个问题发生在最新的这是由于下面的更新造成的:
[html] view
plain copy
- 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
这是由于下面的更新造成的:
- 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.
问题的是因为用户的根目录可写,并且使用了chroot限制,而这在最近的更新里是不被允许的。要修复这个错误,可以用命令chmod a-w /home/user去除用户根目录的写权限,注意把目录替换成你自己的。
或者你可以在vsftpd的配置文件中增加下列两项中的一项:
对于标准的vsftpd build (vsftpd):
allow_writeable_chroot=YES
对于扩展的vsftpd build (vsftpd-ext):
allow_writable_chroot=YES
[html] view
plain copy
500 OOPS: vsftpd: refusing to run with writable root inside chroot ()
这个问题发生在最新的这是由于下面的更新造成的:
[html] view
plain copy
- 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
这是由于下面的更新造成的:
- 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.
问题的是因为用户的根目录可写,并且使用了chroot限制,而这在最近的更新里是不被允许的。要修复这个错误,可以用命令chmod a-w /home/user去除用户根目录的写权限,注意把目录替换成你自己的。
或者你可以在vsftpd的配置文件中增加下列两项中的一项:
对于标准的vsftpd build (vsftpd):
allow_writeable_chroot=YES
对于扩展的vsftpd build (vsftpd-ext):
allow_writable_chroot=YES
相关文章推荐
- 一张图让你迅速理解区分各种开源许可证GPL、BSD、MIT、Mozilla、Apache、LGPL
- PHP网站从wamp下转到mamp下遇到的问题
- shell:读取文件的每一行内容并输出
- shell脚本抽取文本文件中指定字符串的方法:sed+grep方法、awk+grep方法(必要时可以联合sed以及grep)、grep+cut方法
- Linux 解压后的启动流程分析
- Linux 内核自解压流程分析
- linux 进程地址空间的一步步探究
- 远程管理 KVM 虚机 - 每天5分钟玩转 OpenStack(5)
- linux 标准IO缓冲机制探究
- linux 进程(一)---基本概念
- Linux系统中,read文件过程分析
- GemFire 入门篇2:GemFire 8.2 在CentOS & Mac OS X的安装步骤 - doubletree - 博客园
- Mac OS X & Linux下搭建Nrf51822开发环境与编译过程
- linux下c编程基础
- Facebook移动架构:Android Flux架构详解
- Docker搭建
- Android应用架构变更背后的经验、失误与推论
- Android 架构演化之路
- java 常用的日志功能网站
- linux tar.gz,rpm具体细节