Saturday, 21 May 2011

Configure the Pure-FTPd welcome message

Create the message
I use vi for this:
vi /etc/pure-ftpd/welcome.msg
Type your message, press Esc, :wq, Enter (mine is “Clapton is God” but Hendrix works as well).

Make Pure-FTPd use this file
vi /etc/init.d/pure-ftpd
Add -F /etc/pure-ftpd/welcome.msg to the quoted text in start() > daemon (probably around line 33).
It should look like this:
daemon "$pure_launch_script $pure_config --daemonize > /dev/null -F /etc/pure-ftpd/welcome.msg"

Restart the server
service pure-ftpd restart

What did I promise? Easy and fun :)

No comments:

Post a Comment