How to change the port for pure-ftpd

Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"

Top Level » Ftp » pure-ftpd

How to change the port for pure-ftpdLast Modified: Jan 12, 2018, 4:21 pm

Update: Jan 2018

new pure-ftpd new installs now have a config file at:


Changes can be added there.

By default pure-ftpd binds to port .
You can specify a different port by editing:


There should be 2 OPTIONS= lines.
Add a 3rd line that looks like this:

OPTIONS="${OPTIONS} --bind 21"

and then restart pure-ftpd.

If you're running a systemd OS (CentOS 7+, Debian 8+), then instead of the init.d script, you'd edit:


and add the OPTIONS line, just like above.

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST