Unable to run vsftpd command I am using Sierra 10.12.6 and by using Homebrew, vsftpd is installed so that I can set up an FTP server my iPad can connect to.

However, I can't run the command vsftd:  

zsh: command not found: vsftpd

But when I try to install vsftpd again, i see that   

*Warning: vsftpd 3.0.3 is already installed

I can do man vsftpd and that works fine.

I run which vsftpd at root, this returns vsftpd not found    

I went to the vsftpd config file and also set listen=YES

So how do I run vsftpd?
vsftpd needs to be in your PATH

If it's not in your PATH, it will not run nor will you be able to find it with the which command.

You can add it two ways:


Append your PATH to include the directory /usr/local/Cellar/vsftpd/3.0.3/sbin
Make a symlink to vstpd in your /usr/local/bin directory 


I would choose the second option as you have less items to modify (.bash_profile for example):

sudo ln -s /usr/local/Cellar/vsftpd/3.0.3/sbin/vsftpd /usr/local/bin/vsftpd


That said...I wouldn't be using an insecure protocol like FTP to transfer files - scp is a much better option.  See this blog for details