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
?
Best Answer
vsftpd
needs to be in your PATHIf 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:
/usr/local/Cellar/vsftpd/3.0.3/sbin
vstpd
in your/usr/local/bin
directoryI would choose the second option as you have less items to modify (
.bash_profile
for example):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