Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

so here's the deal. I have vsftpd installed and am looking to change the default port to something other than 21. I've checked /etc/vsftpd.conf and can't find a setting to change the default port. I'm running Ubuntu 10.04, which doesn't have the /etc/vsftp/vsftpd.conf file. The only line I'm getting in the file that has to do with ports is the following:


Does anyone know if there's another config file somewhere that I can change the default port on or simply the syntax for a need line to change the port?

share|improve this question
up vote 9 down vote accepted

According to online manpage (man vsftpd.conf), you can use listen_port option to set port on which vsftpd will listen for control connections. For example,


Also note what the default /etc/vsftpd.conf recommends in its header:

# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.