Hey guys, this has been a problem for a long time in Ubuntu. Each time a new version of Ubuntu is released, the VSFTPD package needs to be patched or configured in a strange manner in order to support MySQL integration for virtual users.
On Ubuntu 14.04 (x64 only) which just came out, I was getting this error when attempting to connect as a valid user:
libgcc_s.so.1 must be installed for pthread_cancel
500 OOPS: priv_sock_get_result
The connection would fail and no files could be uploaded. I am a developer for open source software, and I've posted a list containing the
fixes for previous versions of Ubuntu. However, 14.04 x64 (64-bit Only) required the fix in the link below last reply to be applied:
http://askubuntu.com/questions/12662...cancel-to-work
I have packaged the fixed version up into a deb package. I tested it, and it's working great on Ubuntu 14.04. I hope this helps others. The full script to run is located here:
Code:
sudo apt-get remove vsftpd
sudo dpkg --remove vsftpd
sudo sed -i 's/chroot_local_user=NO/chroot_local_user=YES/g' /etc/vsftpd.conf
sudo sed -i 's/allow_writeable_chroot=NO/allow_writeable_chroot=YES/g' /etc/vsftpd.conf
sudo sed -i 's/seccomp_sandbox=YES/seccomp_sandbox=NO/g' /etc/vsftpd.conf
wget -N -O "vsftpd_3.0.2-1ubuntu2.deb" http://dinofly.com/files/linux/vsftpd_3.0.2-1ubuntu2_amd64.deb
sudo dpkg -i vsftpd_3.0.2-1ubuntu2.deb
sudo service vsftpd restart
Again, this is only for Ubuntu 14.04 x64, previous Ubuntu fixes for VSFTPD based on Ubuntu version are linked above. VSFTPD with minor fixes in 32-bit worked just fine out of the box. The fix for 32-bit is this:
Code:
sudo sed -i 's/chroot_local_user=NO/chroot_local_user=YES/g' /etc/vsftpd.conf
sudo sed -i 's/allow_writeable_chroot=NO/allow_writeable_chroot=YES/g' /etc/vsftpd.conf
sudo service vsftpd restart
Bookmarks