500 OOPS: vsftpd: refusing to run with writable anonymous root

500 OOPS: vsftpd: refusing to run with writable anonymous root

以下就是解决的三个步骤,其中第一步,是我一直没有搞明白的,也是其中的重点:

1当时我在服务器上用命令ftp时,出现了以下的提示500 OOPS: vsftpd: refusing to run with writable anonymous root

所以在网上找到了这一篇文章: "如果我们已经把vsFTPd服务器启动好了,但登录测试是会出现类似下面的提示;

500 OOPS: vsftpd: refusing to run with writable anonymous root 这表示ftp用户的家目录的权限不对,应该改过才对;

[[email protected] ~]# more /etc/passwd |grep ftp ftp:x:1000:1000:FTP User:/var/ftp:/sbin/nologin
我们发现ftp用户的家目录在/var/ftp,就是这个/var/ftp的权限不对所致,这个目录的权限是不能打开所有权限的;

是您运行了chmod 777 /var/ftp所致;如果没有ftp用户这个家目录,当然您要自己建一个;

如下FTP用户的家目录是不能针对所有用户、用户组、其它用户组完全开放;

[[email protected] ~]# ls -ld /var/ftp
drwxrwxrwx 3 root root 4096 2005-03-23 /var/ftp 修正这个错误,应该用下面的办法;

[[email protected] ~]# chown root:root /var/ftp

[[email protected] ~]# chmod 755 /var/ftp

有的弟兄可能会说,那匿名用户的可读、可下载、可上传怎么办呢?这也简单,在/var/ftp下再建一个目录,

权限是777的就行了,再改一改vsftpd.conf就OK了;没有什么难的; vsFTPd出于安全考虑,是不准让ftp用户的家目录的权限是完全没有限制的,您可以去读一下vsFTPd的文档就明白的了;否则也不能称为最安全的FTP服务器了,对不对?"

2:防火墙的打开相应的端口21,20

3:因为我是adsl双网卡上网的形式,所以还要加载ip_conntrack_ftp这个模块/这个不要忘了.

anon_root=/zzx/ftp这个是匿名用户登陆的默认目录,,这个必须要和/etc/passwd中的ftp用户的默认宿主目录要一样,,否着会出现上面的错误!

如果在/zzx/ftp目录下新建一个anonymous目录而且权限为777的话,只能新建,不能删除,因为新建的目录或者文件的所属用户是ftp的,,,

没有删除读取的权限,估计要修改/etc/vsftpd.conf中的 umask 这项了.....

时间: 2024-08-03 18:10:23

500 OOPS: vsftpd: refusing to run with writable anonymous root的相关文章

Linux联接vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误

当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误: [html] view plaincopy 500 OOPS: vsftpd: refusing to run with writable root inside chroot () 这个问题发生在最新的这是由于下面的更新造成的: [html] view plaincopy - Add stronger checks for the configuration error of running with a wri

500 OOPS: vsftpd: refusing to run with writable root inside chroot()

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_chr

【转】vsftp 遇到错误 500 OOPS: vsftpd: refusing to run with writable root inside chroot()--不错

原文网址:http://linux.it.net.cn/e/server/ftp/2015/0227/13554.html 当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误: 500 OOPS: vsftpd: refusing to run with writable root inside chroot () 这个问题发生在最新的这是由于下面的更新造成的:  IT网,http://www.it.net.cn - Add stronger checks for t

vsftpd:500 OOPS: vsftpd: refusing to run with writable root inside chroot ()错误的解决方法

当我们限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误: 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(). Thi

vsftpd之解决500 OOPS: vsftpd: refusing to run with writable root inside chroot ()

问题描述:    登陆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.更改根目录的权限: 假设

vsftp--500 OOPS: vsftpd: refusing to run with writable root inside chroot()

概述: 今天把服务器升级到了Centos7,准备弄一个vsftpd做一个简单的权限控制,如下 1,local_enable=YES        ###允许用户登录. 2,chroot_local_user=YES    ##所有用户chroot 设置好了,但是报错 500 OOPS: vsftpd: refusing to run with writable root inside chroot() 内核: Linux localhost.localdomain 3.10.0-123.el7.

ubuntu 14.04 下FTP服务器的搭建--锁定用户目录,解决vsftpd: refusing to run with writable root inside chroot()

FTP服务器的搭建,我要实现的需求是: 不允许匿名访问,因为我的机器不想让谁都能登录上来,随便获取文件, 需要锁定一个目录,因为在家里,我需要给媳妇下载一些电影 韩剧之类的东西,媳妇会来我机器下载,但是我不想让他随意操作我的东西. 万一删除我的配置文件,我就惨了(吐槽一下韩剧:媳妇问我,你都没看过韩剧怎么知道它不好看呢,我说:我没吃过屎 但是知道它一定不好吃!) 另外,需要本机也能访问,因为我要做一些关于FTP的测试.  不单独建立FTP用户,FTP也使用ubuntu桌面的用户进行登录和操作,

解决vsftpd的refusing to run with writable root inside chroot错误

升级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 peo

关于vsftpd的refusing to run with writable root inside chroot()问题

今天在上班帮测试的同事搭建ftp服务器时出现的一个问题 服务搭建完成后连接时报这个错误: refusing to run with writable root inside chroot() 查了资料后找到了原因,在限定了用户不能跳出其主目录之后,使用该用户登录FTP时往往会遇到这个错误 好像是因为更新的原因导致的 可以使用chmod a-w  PATH(你自己的登录ftp的用户家目录,我的是/mnt/ftp,自己修改的) 原文地址:https://www.cnblogs.com/fwnmmdz