Ways to modify the welcome information in the Wdlinux pure-ftp

Source: Internet
Author: User
Tags touch

To modify the welcome information for the PURE-FTP server, we recommend that you modify the welcome information for Server-u (Serv-u V6.3 Edition) to confuse the naughty kids.

After modification:

Status: Parsing svr1.upall.cn address
Status: Connecting 110.110.110.110:21 ...
Status: Connection established, waiting for welcome message ...
Response: 220-Welcome to login to my FTP. <--look here, this is the place where this is changed.
Command: USER Anonymous
Response: 331 Please specify the password.
Command: Pass ****************
Response: 230 Login successful.
Command: OPTS UTF8 on
Response: Always in UTF8 mode.
Status: Connected
Status: Reading directory list ...
Command: PWD
Response: 257 "/"
Status: Listing Directory success

Operation Steps:

First step, create welcome text

Create a file/www/wdlinux/pureftpd/welcome.msg, write the content casually.

Step two, modify/ETC/INIT.D/PUREFTPD

In the Start () section, locate the "$fullpath $conf –daemonize" and add ">/dev/null-f/www/wdlinux/pureftpd/welcome.msg" At the end, modified by:

Start () {
Echo-n $ "Starting $prog:"
$fullpath $conf--daemonize >/dev/null-f/www/wdlinux/pureftpd/welcome.msg
Retval=$?
[$RETVAL = 0] && touch/var/lock/subsys/$prog
Echo
}

Prior to modification:

Start () {
Echo-n $ "Starting $prog:"
$fullpath $conf--daemonize
Retval=$?
[$RETVAL = 0] && touch/var/lock/subsys/$prog
Echo
}

Step three, restart Pure-ftp

Service PUREFTPD Restart
—-

Finish.

VSFTPD can add a line to "Ftpd_banner= want to say" (reboot required) by modifying/etc/vsftpd/vsftpd.conf

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.