Cannot login via FTP using FileZilla: 530 Login authentication failed

@Epic

RUn this to remove pure-ftpd software package and reinstall it again just to eliminate any package and conf corruptions:

# create a snapshot of your server
# stop the service
systemctl stop pure-ftpd
# remove package and leftovers
sudo apt-get purge --auto-remove pure-ftpd
sudo apt install pure-ftpd -y
groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser
systemctl start pure-ftpd
mkdir /etc/ssl/private
openssl req -newkey rsa:1024 -new -nodes -x509 -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
rm -R /etc/pure-ftpd
mkdir /etc/pure-ftpd
cp /usr/local/CyberCP/install/pure-ftpd-one/* /etc/pure-ftpd/
systemctl restart pure-ftpd

If you get an error that Access denied for user ('cyberpanel' @ 'localhost' ... run the following command nano pureftpd-mysql.conf and change the password to correct cyberpanel user password you can find it here /usr/local/CyberCP/CyberCP/settings.py under DATABASES =

Tried that but I now get the following when trying to restart ftpd. Logs indicate:
/usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory

➜ ~ ls -la /etc/pure-ftpd/
total 32
drwxr-xr-x 2 root root 4096 Dec 7 23:00 .
drwxr-xr-x 126 root root 12288 Dec 7 23:00 …
-rw-r–r-- 1 root root 1092 Dec 7 23:01 pure-ftpd.conf
-rw-r–r-- 1 root root 2009 Dec 7 23:01 pureftpd-ldap.conf
-rw-r–r-- 1 root root 375 Dec 7 23:01 pureftpd-mysql.conf
-rw-r–r-- 1 root root 2966 Dec 7 23:01 pureftpd-pgsql.conf

Should pure-ftpd.conf be renamed?

@josephgodwinke

Fixed by not deleting the ftpd dir but just overwriting the files from CP. However, still no luck even with a new user and pass, only difference I see in FileZilla is: Status: Insecure server, it does not support FTP over TLS.

Only other thing I can think of is that I haven’t updated the DNS for the “website” yet. Does that matter?. It shouldn’t do?. I am connecting Host via FileZilla directly via the IP and not the domain name anyway.

Or possibly because I am using Ubuntu 22. The install only says up to Ubuntu 20. Ya looks like Ubuntu 22 is not support as Stable release yet. CyberPanel support for Ubuntu 22

I will see if Ubuntu 20 works without any issues.

Ok but any idea of what to do to fix it? Reinstall PureFTP? That’s it?

@villasweb @Epic sorry to hear you have issues with authentication.

530 Login authentication failed error on cyberpanel seems to always be a password database corruption.

Yes you have to reinstall although it should work on ubuntu 20 new installation without any issues.

However, the only way to fix this is reinstall pureftpd or install CyberPanel without ftp.

Run this to remove pure-ftpd software package and reinstall it again just to eliminate any package and conf corruptions:

# create a snapshot of your server
# stop the service
systemctl stop pure-ftpd
# remove package and leftovers
sudo apt-get remove --purge pure-ftpd pure-ftpd-common
sudo apt autoremove
sudo killall -u ftpuser
sudo userdel -f ftpuser
sudo groupdel ftpgroup
sudo apt install pure-ftpd -y
groupadd -g 2001 ftpgroup
useradd -u 2001 -s /bin/false -d /bin/null -c "pureftpd user" -g ftpgroup ftpuser
systemctl start pure-ftpd
mkdir /etc/ssl/private
openssl req -newkey rsa:1024 -new -nodes -x509 -days 3650 -subj "/C=US/ST=Denial/L=Springfield/O=Dis/CN=www.example.com" -keyout /etc/ssl/private/pure-ftpd.pem -out /etc/ssl/private/pure-ftpd.pem
rm -R /etc/pure-ftpd
mkdir /etc/pure-ftpd
cp /usr/local/CyberCP/install/pure-ftpd-one/* /etc/pure-ftpd/
systemctl restart pure-ftpd

If you get an error that Access denied for user ('cyberpanel' @ 'localhost' ... run the following command nano pureftpd-mysql.conf and change the password to correct cyberpanel user password you can find it here /usr/local/CyberCP/CyberCP/settings.py under DATABASES =

OR

sudo service pure-ftpd stop
sudo apt-get autoremove pure-ftpd
sudo apt-get purge pure-ftpd
sudo rm -r /etc/pure-ftpd
sudo killall -u ftpuser
sudo userdel -f ftpuser
sudo groupdel ftpgroup
sh <(curl https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh || wget -O - https://raw.githubusercontent.com/usmannasir/cyberpanel/stable/preUpgrade.sh)

OR

Just install vsftp for a secure ftp if you dont care about managing users on a dashboard

sh <(curl https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/install_vsftpd.sh || wget -O - https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/install_vsftpd.sh)

You will access ftp with user your choose during the installation process and the password you create during the process. This user will access the home directory you choose (note the script will not create the user home directory)

You can create other users by running:

# usercreatedoncyberP managed mydomain.com
sudo usermod -d /home/mydomain.com usercreatedoncyberP
sudo chown usercreatedoncyberP:usercreatedoncyberP /home/mydomain.com/public_html

I use this method on several servers with similar issues in the past and it works. Good luck

I tried to install vsftp but Forklift refuse the connection with ftpuser. I just don’t understand what you mean by “and the password you create during the process” … what process exactly?

I have updated the script and tested it.

It will uninstall vsfptd and pureftpd before running. Note this will not work for any other os other than ubuntu

Ubuntu 22.04

lsb_release -a

No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.1 LTS
Release: 22.04
Codename: jammy

Looking at services status on CP:

and at the console with systemctl status pure-ftpd-mysql.service

You are talking about pureftpd I was talking about vsftpd. The script remove pureftpd completely and then installs vsftpd for you to use as you wish off cyberpanel

Anyone who works, I accept

Just press the play button under pureFTPd to start the service then check if pureftpd is running

already pressed. Still shows the green play button but with the “Running” on PureFTPd …

OP, did you ever find a solution?

I have the same problem.

Same probleme here on my ubuntu 22.04

and there is definitively a display bug in service panel. Always saying running with the green start button
image

As I can see in the other discussion it seem a problem with ubuntu 22.04

Hi
Removing and installing agin , I got this error:

Hello @av_admin

Uninstalling in the first place was not a recommended move for many. Which os are you using?

1 Like

Hello @josephgodwinke
Ubuntu 20.04

@ josephgodwinke is there any hope to solve this or I should install new server?

Yes you need to try fix pureftpd.

You can try fix with this script -

sh <(curl https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/install_pureftpd.sh || wget -O - https://raw.githubusercontent.com/josephgodwinkimani/cyberpanel-mods/main/install_pureftpd.sh)
1 Like