{"id":71,"date":"2015-12-11T13:59:58","date_gmt":"2015-12-11T13:59:58","guid":{"rendered":"https:\/\/www.s66.org\/?p=71"},"modified":"2023-07-11T17:20:13","modified_gmt":"2023-07-11T17:20:13","slug":"alternative-ftp-server-in-case-of-trouble","status":"publish","type":"post","link":"https:\/\/www.ehcp.net\/?p=71","title":{"rendered":"Alternative Ftp server in case of trouble"},"content":{"rendered":"<p>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 &#8220;refusing to run with writable root inside chroot()&#8221; or &#8220;libgcc_s.so.1 must be installed for pthread_cancel to work&#8221;.<br \/>\nThese errors may arise also after Ubuntu\/package upgrade.<\/p>\n<p>There are some solutions to these problems but, anyway, we are seeking fo alternatives to vsftpd. You may also suggest alternative ftp servers.<br \/>\nThe new server should be:<br \/>\n* Easily installable and configurable,<br \/>\n* Authenticates through ehcp db of mysql,<br \/>\n* Store passwords in non-plain text<\/p>\n<p>Currently, we managed to build an ftp server using python programming language, in our own, to overcome these issues, after seeking some alternatives.<br \/>\nWe will test these for a while, note that these are all beta quality software.<\/p>\n<p>You may download these two files to your ehcp dir in your server:<br \/>\nhttp:\/\/ehcp.net\/diger\/classapp.py<br \/>\nhttp:\/\/ehcp.net\/diger\/ftp_server.py<\/p>\n<p>and run ftp_server.py in console of your server, here are required commands for downloading and running in console:<\/p>\n<p>cd \/var\/www\/new\/ehcp<br \/>\nwget http:\/\/ehcp.net\/diger\/classapp.py<br \/>\nwget http:\/\/ehcp.net\/diger\/ftp_server.py<br \/>\nchmod a+x *.py<br \/>\napt-get install python-mysqldb<br \/>\napt-get install python-pip<br \/>\npip install pyftpdlib<br \/>\nupdate-rc.d vsftpd disable<br \/>\nservice vsftpd stop<br \/>\n.\/ftp_server.py<\/p>\n<p>We basicly tested it and it works, but it needs testing throughly.<br \/>\n(this ftpserver currently needs to be restarted manually each time a new user is added. will be fixed.)<\/p>\n<p>This ftp server is used by default in ehcp versions starting 0.38.b (being tested now)<\/p>\n<p>See you, <\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &#8220;refusing to run with writable root inside chroot()&#8221; or &#8220;libgcc_s.so.1 must be installed for pthread_cancel to work&#8221;. These errors may arise also after Ubuntu\/package upgrade. There [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"blocksy_meta":[],"_links":{"self":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts\/71"}],"collection":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=71"}],"version-history":[{"count":1,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions"}],"predecessor-version":[{"id":202,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=\/wp\/v2\/posts\/71\/revisions\/202"}],"wp:attachment":[{"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=71"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=71"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ehcp.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=71"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}