Jump to Navigation

vsftpd issue -should be solved - please test

As we noted earlier, vsftpd has bugs/new behaviour after Ubuntu 11.10. We are working on fixing that. The new file,

http://ehcp.net/ehcp_yeni.tgz

is being tested now. It should be able to install including vsftpd. Please test this as much as you can and send us your results.

additional note on ehcp_yeni.tgz:
ehcp_yeni package has some files missing, since it is a testing version (we removed non-crucial files from it to reduce download&testing time)
copy files from ehcp_latest package: webmail, net2ftp
phpinfo file is remove because of security reasons.

Comments

Again, this fixed it for me on Ubuntu 12.04:


sudo add-apt-repository ppa:thefrontiergroup/vsftpd
sudo apt-get update
sudo apt-get install vsftpd
sudo sed -i 's/chroot_local_user=NO/chroot_local_user=YES/g' /etc/vsftpd.conf
sudo sh -c "echo 'allow_writeable_chroot=YES' >> /etc/vsftpd.conf"
sudo service vsftpd restart

More information here: http://ehcp.net/?q=comment/2900#comment-2900

~
Thanks
OwN-3m-All
EHCP Force Edition

I applied the fix by own3small. And no working with error
"libgcc_s.so.1 must be installed for pthread_cancel to work"
Then I tried :
apt-get install libpam-ldap
It work !
The reason I guess: the ldap reset some permission then the ftp is working.
Any discussion more ?

Not working on Ubuntu 10.04 64 bit

phcorner.net

You shouldn't be using the fix unless you're using Ubuntu 12.04 or later. EHCP and VSFTPD work fine on all versions of Ubuntu less than 12.04

~
Thanks
OwN-3m-All
EHCP Force Edition

anonymous_enable=NO
local_enable=YES
write_enable=YES
local_umask=022
dirmessage_enable=YES
xferlog_enable=YES
connect_from_port_20=YES
nopriv_user=vsftpd

chroot_local_user=YES
chroot_list_enable=NO
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=YES
force_local_logins_ssl=YES
ssl_tlsv1=YES
ssl_sslv2=YES
ssl_sslv3=YES
force_dot_files=YES
hide_ids=YES
max_per_ip=2
max_clients=20

secure_chroot_dir=/var/run/vsftpd
pam_service_name=vsftpd
rsa_cert_file=/etc/ssl/certs/vsftpd.pem
guest_enable=YES
guest_username=vsftpd
local_root=/var/www/vhosts/$USER
user_sub_token=$USER
virtual_use_local_privs=YES
user_config_dir=/etc/vsftpd_user_conf
local_max_rate=2000000 # bytes per sec, 2Mbytes per sec
max_clients=20 # to avoid DOS attack, if you have a huge server, increase this..
ftpd_banner=Welcome to PhWebHosting.Net Server, managed your FTP files.

allow_writable_chroot=YES

I'm using Ubuntu 10.04 64 bit, ftp is not working.
Connection attempt failed with "ECONNREFUSED - Connection refused by server".

phcorner.net

I have been working on that OS 12.04 and found the fix

sudo apt-get install libpam-ldap

during installation, it opens a popup asking ip and port number

just do

ldap://:port

something like that line

type your server ip: 21

21 ftp port and FTP WORKS

I am about to install Ubuntu 13.04 on a new home server.
Does ftp work on that just new version of Ubuntu?
Did anyone try already?

Come on guys, lets put our heads together to get this working perfect for the latest version ubuntu. We need all the goodies that we had for the old version.

budgierless's picture

so far, i have not had any problem with ubuntu 12.04, please add a full yeni to test.

budgierless's picture

their maybe timeout issue with large files, but im not sure, it seems to be random, maybe it is my internet connection, can anyone confirm?

Installed the latest ehcp and the bugfixes listed in here. ftp seems not be startet

terminated with status 1 can be seen in syslog

DO NOT RUN ANY OF THE BUGFIXES POSTED HERE!

The EHCP installer has been changed to apply specific fixes to your installed version of Ubuntu. Try running EHCP Yeni out of the box without applying any "fixes" or "patches" described in this thread.

~
Thanks
OwN-3m-All
EHCP Force Edition

The EHCP installer has been changed to apply specific fixes to your installed version of Ubuntu. Try running EHCP Yeni out of the box without applying any "fixes" or "patches" described in this thread.

Thanks

apt-get install libssl0.9.8

openssl req -x509 -nodes -days 365 -newkey rsa:1024 \
-keyout /etc/vsftpd/vsftpd.pem \
-out /etc/vsftpd/vsftpd.pem

mkdir /etc/vsftpd
nano /etc/vsftpd.conf

ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
listen_port=990
rsa_cert_file=/etc/vsftpd/vsftpd.pem



Main menu 2

Story | by Dr. Radut