Anonymous upload/download of common vsFTPd Server Functions

Source: Internet
Author: User

Implementation of anonymous upload/download;

Anonymous upload is actually relatively simple. First, we need to modify it.Vsftpd. Conf. The file is located in the/etc/directory, which may be/etc/vsftpd. conf or/etc/vsftpd. conf. Your system environment shall prevail;

First, we need to change vsftpd. conf to make sure there are the following lines;

Anonymous_enable = YES

Anon_upload_enable = YES

Anon_mkdir_write_enable = YES

Anon_umask = 022

Second, create a folder under the ftp user's home directory and change its permissions to fully open;

Where is the home directory of an ftp user? As we have already said, you can view it through/etc/passwd; you can also view it through finger ftp;

[Root @ localhost beinan] # finger ftp

Login: ftp Name: FTP User

Directory:/var/ftp Shell:/sbin/nologin

This indicates that the ftp user's home directory is in/var/ftp. We need to create a directory under this directory and set its permissions to readable, writable, and executable by any user; in general, there is a/var/ftp/pub directory in the release. If not, you can create one by yourself. After you change the configuration file, you only need to enable the permission of any directory under/var/ftp to upload and download anonymously;

For example, if you want anonymous users to upload and download files in/var/ftp/pub, you can open the/var/ftp/pub permission. If you do not have this directory, you must create one by yourself;

[Root @ localhost ~] # Mkdir/var/ftp/pub

[Root @ localhost ~] # Chmod 777/var/ftp/pub

In this way, it is OK to upload the file to the pub directory.

After introducing this article, I learned the anonymous upload/download function of the TPd server. Please share it with your friends!

  • The relationship between vsFTPd servers, firewalls, and SELINUX is ambiguous.
  • How to enable and disable the vsFTPd Server
  • Install vsFTPd in one minute
  • How to add Vsftpd virtual users
  • Vsftpd server configuration in FreeBSD 8.1
  • Configure vsftpd FAQ On Debian
  • Getting started with vsftpd-installation, configuration, cases and FAQs
  • The most detailed vsftpd configuration file in history

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.