Ubuntu 12.04 64bit系统下安装的vsftpd,在登陆时提示500 OOPS: vsftpd: refusing to run with writable root inside chroot()。根本原因在于,从vsftpd_2.3.5版开始,取消了根目录的可写权限。因此,网上的普遍解决方案是以下两种:
方案一
$ chmod a-w /vaf/ftp
方案二
$ vim /etc/vsftpd.conf #add the following allow_writeable_chroot=YES
看起来,貌似第二种方式是更完美,但当我把allow_writeable_chroot=YES配置项加入的时候,重启vsftpd服务的时候发现不能正常工作了(21端口无程序在监听),于是上网查找解决方案,发现说法五花八门的,有人说配置项是allow_writable_chroot(少了个e),还有说配置项是allow_writable_root(少了ch)等的,经过我测试,发现全都不行。后来总算找到一个可行的方法。
Ubuntu 12.04 64bit的完整解决方案
$ apt-get install python-software-properties $ sudo add-apt-repository ppa:thefrontiergroup/vsftpd $ sudo apt-get update $ sudo apt-get install vsftpd $ vim /etc/vsftpd.conf and add the following chroot_local_user=YES allow_writeable_chroot=YES $ sudo service vsftpd restart
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://sulao.cn/post/207
相关阅读
- ubuntu22.04安装cuda失败提示"Uninstall manifest corrupt"
- ubuntu使用ssh命令批量设置集群节点具有sudo权限的账户sudo免密切换
- ubuntu22.04算力环境基础配置一键验证脚本
- ubuntu22.04算力环境基础配置一键脚本
- ubuntu22.04忘记root密码进入单用户模式修改密码
- ubuntu22.04屏蔽使用apt安装软件时出现弹窗要求选择重启服务的方法
- ubuntu22.04删除系统中的新内核并回退的方法
- ubuntu22.04部署chrony时间同步服务
- ubuntu22.04部署ntp时间同步服务器
- ubuntu22.04切换cgroup v2到cgroup v1
评论列表