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