I installed the VSFTPd 3.0.2 on Ubuntu 12.04 following this commands:
$ wget https://security.appspot.com/downloads/vsftpd-3.0.2.tar.gz
$ tar xzvf vsftpd-3.0.2.tar.gz
$ cd vsftpd-3.0.2
$ make -j8
$ mkdir -p /usr/share/empty /var/ftp /usr/local/man/man5 /usr/local/man/man8
$ useradd -d /var/ftp ftp
$ chown root.root /var/ftp
$ chmod og-w /var/ftp
$ cp vsftpd.conf /etc
$ make install
So, to start, the documentation says to run this command:
/usr/local/sbin/vsftpd &
But, I'd like to create a /etc/init.d/vsftpd file to init and puts on daemon to start.
How should I proceed?
Best Answer
Can you try this one:
Save it as
/etc/init.d/vsftpd
and try to start the daemon using it. If it fails to start, please return with log entry.EDIT: I had modified the script. Seems that vsftpd ain't made for
start-stop-daemon
. And this time I had time to test it out, so is working.