As you know, ehcp uses vsftpd as the ftp layer in server. However, there are some problems in this ftp server since a while. There are some errors like “refusing to run with writable root inside chroot()” or “libgcc_s.so.1 must be installed for pthread_cancel to work”.
These errors may arise also after Ubuntu/package upgrade.
There are some solutions to these problems but, anyway, we are seeking fo alternatives to vsftpd. You may also suggest alternative ftp servers.
The new server should be:
* Easily installable and configurable,
* Authenticates through ehcp db of mysql,
* Store passwords in non-plain text
Currently, we managed to build an ftp server using python programming language, in our own, to overcome these issues, after seeking some alternatives.
We will test these for a while, note that these are all beta quality software.
You may download these two files to your ehcp dir in your server:
and run ftp_server.py in console of your server, here are required commands for downloading and running in console:
chmod a+x *.py
apt-get install python-mysqldb
apt-get install python-pip
pip install pyftpdlib
update-rc.d vsftpd disable
service vsftpd stop
We basicly tested it and it works, but it needs testing throughly.
(this ftpserver currently needs to be restarted manually each time a new user is added. will be fixed.)
This ftp server is used by default in ehcp versions starting 0.38.b (being tested now)