升级vsftpd或者vsftpd-ext后,登录时可能会出现这样的错误:

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.

 问题的是因为用户的根目录可写,并且使用了chroot限制,而这在最近的更新里是不被允许的。要修复这个错误,可以用命令chmod a-w /home/user去除用户根目录的写权限,注意把目录替换成你自己的。

或者你可以在vsftpd的配置文件中增加下列两项中的一项:

对于标准的vsftpd build (vsftpd):(我用的是此方法)

allow_writeable_chroot=YES

对于扩展的vsftpd build (vsftpd-ext):

allow_writable_chroot=YES

 

相关文章:

  • 2022-12-23
  • 2022-02-08
  • 2021-09-20
  • 2022-12-23
  • 2021-11-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-08-30
  • 2021-11-09
  • 2022-12-23
相关资源
相似解决方案