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