OOPS:vsftpd:refusing to run with writable anonymous root

Source: Internet
Author: User

OOPS:vsftpd:refusing to run with writable anonymous root

Here are the three steps to solve , the first step , which I have not understood , is also the focus :

1 When I was using the command FTP on the server , the following prompt appeared OOPS:vsftpd:refusing to run with writable anonymous root

So I found this article on the Internet : " if we have the vsFTPd server started well, but the login test will appear similar to the following prompt;

OOPS:vsftpd:refusing to run with writable anonymous root This means that the FTP user's home directory permissions are not correct, should be changed;

[[email protected] ~]# more/etc/passwd |grep ftp ftp:x:1000:1000:ftp user:/var/ftp:/sbin/nologin
We found that the FTP user's home directory in /var/ftp, that is, the permissions of this /var/ftp is not caused by the permissions of this directory is not open all permissions;

Is you run chmod 777/var/ftp caused by, if there is no ftp user This home directory, of course you want to build one;

The following FTP user's home directory is not available for all users, user groups, other user groups completely open;

[Email protected] ~]# ls-ld/var/ftp
DRWXRWXRWX 3 root root 4096 2005-03-23/var/ftp fix this error, should use the following method;

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

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

Some brethren may say, what if the anonymous user is readable, downloadable, and can be uploaded? It's also easy to build a directory under the /var/ftp ,

Permission is 777 on the line, and then change the vsftpd.conf is OK ; nothing difficult; VSFTPD for security reasons, it is forbidden to let the ftp The user's home directory permissions are completely unlimited, you can read the vsFTPd document to understand, otherwise it can not be called the most secure FTP server, right? "

2: Open the appropriate port for the firewall 21,20

3: because I am ADSL dual network card internet form , so also to load ip_conntrack_ftp This module / This do not forget .

Anon_root=/zzx/ftp This is the default directory for anonymous users, which must be the same as the default host directory for FTP users in /etc/passwd . , the error will appear above !

If you create a new anonymous directory under the /zzx/ftp directory and the permissions are 777 , you can only create new ones and not delete them. Because the new directory or file belongs to the user who is ftp ,,,

There is no permission to delete the read , it is estimated to modify the umask in /etc/vsftpd.conf ...

OOPS:vsftpd:refusing to run with writable anonymous root

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.