VsftpdIt is a small and practical FTP server program. We often see welcome words when logging on to the server. This article will teach you how to set welcome information on vsftpd.
How to customize the welcome information, that is, after we log on to some FTP, there will be a similar: Welcome to LinuxSir FTP, here, you will get the most sincere help, if you have any questions or suggestions, please send me a letter. Thank you.
It is not difficult to implement this. We can check whether this line exists in the vsftpd. conf file.
Dirmessage_enable = YES
Message_file =. message
If no, add it. If there is a # sign before dirmessage_enable = YES, remove the # sign. In fact, the default FTP information is. message, so it can be specified without message_file =. It doesn't matter if you specify it yourself;
Then, we create a. message file and write what you want to write. For example, the content of. message is as follows:
-- Welcome to LinuxSir FTP!
-- Here, you will get the most sincere help;
-- If you have any questions or suggestions, please send me a letter. Thank you.
We can use the editor to write this. message. I don't need to talk about this process.
Then we copy the. message file to the Home Directory of each user. For example, if one of my FTP users is beinan and the Home Directory of this user is/opt/beinan
We need to put. message in the/opt/beinan directory. If the system user ftp, his directory is the/var/ftp directory, which is the default. When anonymous users log on, they will access the/var/ftp directory. We want anonymous users to see the welcome information. Put. message in the/var/ftp directory. Other users are nothing more than similar operations.
After reading this article, I wonder if you have learned how to set the welcome information on vsftpd. Please show it to your friends!