500 OOPS Solution

Source: Internet
Author: User

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

If we have started the vsFTPd server, but the logon test will show a message similar to the following;

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

This indicates that the permissions on the home directory of the ftp user are incorrect and should be changed;

 
 
  1. [root@localhost ~]# more /etc/passwd |grep ftp  
  2.  
  3. ftp:x:1000:1000:FTP User:/var/ftp:/sbin/nologin  
  4.  

We found that the ftp user's home directory is in/var/ftp, which is caused by incorrect/var/ftp permissions. the permissions of this directory cannot be opened; it is because you have run chmod 777/var/ftp. If you do not have an ftp user's home directory, you must create one by yourself;

The Home Directory of the following FTP users cannot be fully open to all users, user groups, and other user groups;

 
 
  1. [root@localhost ~]# ls -ld /var/ftp  
  2.  
  3. drwxrwxrwx 3 root root 4096 2005-03-23 /var/ftp  
  4.  

The following method should be used to correct this error;

 
 
  1. [root@localhost ~]# chown root:root /var/ftp  
  2.  
  3. [root@localhost ~]# chmod 755 /var/ftp  
  4.  

Some may say, What should I do if anonymous users are readable, downloadable, and uploadable? This is also simple. You can create a directory under/var/ftp and set the permission to 777. Then you can change vsftpd. conf to OK. There is no difficulty;

For security considerations, vsFTPd does not allow ftp users' home directory permissions to be completely unrestricted. You can read the vsFTPd documentation to understand it; otherwise, it cannot be called the safest FTP server, right?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.