VsftpdIt is one of the most popular FTP server programs in the Linux release. We often use Dreamweaver when a file is uploaded to a remote server, these files reside in a folder in the local directory tree of the server. In this case, we will use virtual paths. Log Viewing is essential every day. Now I will show you how to implement the vsftpd function!
1. How to implement a virtual path?
For example:
/Home/a ing is ftp: // localhost/
/Home/B/c is set to ftp: // localhost/c
In fact, this cannot be said to be the content of vsFTPd. In fact, we have been using it for a long time. We may not have noticed it. We can implement it through the following methods.
[Root @ localhost ~] # Mount -- bind [original directory] [new directory]
For example, if my default ftp directory is/var/ftp, I want to map the/mnt/LinG/WinSoft folder to the/var/ftp directory. I will perform the following operations:
Create a directory in the/var/ftp directory first.
[Root @ localhost ~] # Mkdir/var/ftp/WinSoft
Run the mount command.
[Root @ localhost ~] # Mount -- bind/mnt/LinG/WinSoft/var/ftp/WinSoft
In this case, OK.
2. Enable the log function of the vsFTP server;
Correct # In Front Of xferlog_file below, that is, enable the log function of vsftp, so that we can view vsftpd. log in the/var/log directory. This is the log function of vsFTP, which is extremely important for us.
Xferlog_file =/var/log/vsftpd. log
Through reading the above article, we can know that it is easy to set the virtual path and view the log information. I hope it will be helpful to you!
- Read and Write Permissions for common vsFTPd Functions
- Anonymous upload/download of common vsFTPd Server Functions
- 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
- Getting started with vsftpd-installation, configuration, cases and FAQs
- The most detailed vsftpd configuration file in history