I installed a fresh copy of Ubuntu 22.04 and installed the CyberPanel. I created a website and I added an ftp account. But when I try to login with my ftp information I am getting error message, “530 Login authentication failed”. I checked to make sure, my user name and password is correct. I also have these following ports open for TCP, 21-22, 40000-50000 and 990.
I don’t know what I am doing wrong here… So I created a test server at this URL https://193.122.135.18:8090/. The username and password is the default. I am still getting the same error message on the test server also.
I know it is not wrong password because I have tried different passwords and am getting the same error message. I also tried using “Only use Plain FTP” in FileZilla and it doesn’t work. I also tried to connect to the ftp server through the command prompt and I am getting the same error message.
The OS is UBUNTU 22.04. This is a fresh install. The same error happened on my previous fresh install. So I ran up another server and installed in brand new on the new server. And I got the same error message on both the servers.
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 =
journalctl -u pure-ftpd --no-pager |sed -e "s|$(hostname)|hostname|g"
# on new line <= this is just a comment to guide you
systemctl status pure-ftpd.service
ubuntu@instance-test:~$ journalctl -u pure-ftpd --no-pager |sed -e “s|$(hostname)|hostname|g”
Dec 13 06:22:29 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:22:30 hostname pure-ftpd[12185]: Starting ftp server:
Dec 13 06:22:30 hostname pure-ftpd[12193]: Running: /usr/sbin/pure-ftpd -p 40110:40210 -A -P 193.122.135.18 -Y 1 -B
Dec 13 06:22:30 hostname systemd[1]: Started pure-ftpd.service.
Dec 13 06:25:06 hostname systemd[1]: Stopping pure-ftpd.service…
Dec 13 06:25:06 hostname pure-ftpd[12354]: Stopping ftp server: pure-ftpd.
Dec 13 06:25:06 hostname systemd[1]: pure-ftpd.service: Deactivated successfully.
Dec 13 06:25:06 hostname systemd[1]: Stopped pure-ftpd.service.
Dec 13 06:25:06 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:25:06 hostname pure-ftpd[12364]: Starting ftp server:
Dec 13 06:25:06 hostname pure-ftpd[12372]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:25:06 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:25:06 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:25:06 hostname systemd[1]: Failed to start pure-ftpd.service.
– Boot 47dd6ab6a8b34dbe96e766f59aead0c4 –
Dec 13 06:26:24 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:26:26 hostname pure-ftpd[1067]: Starting ftp server:
Dec 13 06:26:26 hostname pure-ftpd[1095]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:26:26 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:26:26 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:26:26 hostname systemd[1]: Failed to start pure-ftpd.service.
Dec 13 06:27:50 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:27:51 hostname pure-ftpd[1763]: Starting ftp server:
Dec 13 06:27:51 hostname pure-ftpd[1771]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:27:51 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:27:51 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:27:51 hostname systemd[1]: Failed to start pure-ftpd.service.
– Boot 0366046163bf4a37b650ef403c8658b7 –
Dec 13 06:29:06 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:29:07 hostname pure-ftpd[1001]: Starting ftp server:
Dec 13 06:29:07 hostname pure-ftpd[1020]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:29:07 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:29:07 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:29:07 hostname systemd[1]: Failed to start pure-ftpd.service.
– Boot f6e348b90da94adeaf7cfbbb927e1eb6 –
Dec 13 06:36:14 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:36:16 hostname pure-ftpd[1067]: Starting ftp server:
Dec 13 06:36:16 hostname pure-ftpd[1103]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:36:16 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:36:16 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:36:16 hostname systemd[1]: Failed to start pure-ftpd.service.
Dec 13 06:42:19 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:42:19 hostname pure-ftpd[2696]: Starting ftp server:
Dec 13 06:42:19 hostname pure-ftpd[2706]: Running: /usr/sbin/pure-ftpd -l pam -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -J HIGH -E -B
Dec 13 06:42:19 hostname systemd[1]: Started pure-ftpd.service.
Dec 13 06:44:45 hostname systemd[1]: Stopping pure-ftpd.service…
Dec 13 06:44:45 hostname pure-ftpd[2847]: Stopping ftp server: pure-ftpd.
Dec 13 06:44:45 hostname systemd[1]: pure-ftpd.service: Deactivated successfully.
Dec 13 06:44:45 hostname systemd[1]: Stopped pure-ftpd.service.
Dec 13 06:44:45 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:44:45 hostname pure-ftpd[2857]: Starting ftp server:
Dec 13 06:44:45 hostname pure-ftpd[2865]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:44:45 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:44:45 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:44:45 hostname systemd[1]: Failed to start pure-ftpd.service.
– Boot 793462e16b7c43b0adfc58496aa14b5d –
Dec 13 06:48:39 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:48:40 hostname pure-ftpd[1048]: Starting ftp server:
Dec 13 06:48:40 hostname pure-ftpd[1073]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:48:40 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:48:40 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:48:40 hostname systemd[1]: Failed to start pure-ftpd.service.
Dec 13 06:57:49 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:57:49 hostname pure-ftpd[1994]: Starting ftp server:
Dec 13 06:57:49 hostname pure-ftpd[2002]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:57:49 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:57:49 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:57:49 hostname systemd[1]: Failed to start pure-ftpd.service.
Dec 13 06:58:32 hostname systemd[1]: Starting pure-ftpd.service…
Dec 13 06:58:32 hostname pure-ftpd[2103]: Starting ftp server:
Dec 13 06:58:32 hostname pure-ftpd[2111]: /usr/sbin/pure-ftpd-wrapper: Couldn’t examine directory /etc/pure-ftpd/conf: No such file or directory
Dec 13 06:58:32 hostname systemd[1]: pure-ftpd.service: Control process exited, code=exited, status=2/INVALIDARGUMENT
Dec 13 06:58:32 hostname systemd[1]: pure-ftpd.service: Failed with result ‘exit-code’.
Dec 13 06:58:32 hostname systemd[1]: Failed to start pure-ftpd.service.
ubuntu@instance-test:~$ sudo systemctl status pure-ftpd.service
× pure-ftpd.service
Loaded: loaded (/etc/init.d/pure-ftpd; generated)
Active: failed (Result: exit-code) since Tue 2022-12-13 06:58:32 UTC; 12mi>
Docs: man:systemd-sysv-generator(8)
Process: 2103 ExecStart=/etc/init.d/pure-ftpd start (code=exited, status=2)
CPU: 85ms
Dec 13 06:58:32 instance-test systemd[1]: Starting pure-ftpd.service…
Dec 13 06:58:32 instance-test pure-ftpd[2103]: Starting ftp server:
Dec 13 06:58:32 instance-test pure-ftpd[2111]: /usr/sbin/pure-ftpd-wrapper: Cou>
Dec 13 06:58:32 instance-test systemd[1]: pure-ftpd.service: Control process ex>
Dec 13 06:58:32 instance-test systemd[1]: pure-ftpd.service: Failed with result>
Dec 13 06:58:32 instance-test systemd[1]: Failed to start pure-ftpd.service.
lines 1-13/13 (END)
ubuntu@instance-test:~$ sudo apt-get remove --purge pure-ftpd pure-ftpd-common
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages were automatically installed and are no longer required:
openbsd-inetd tcpd update-inetd
Use ‘sudo apt autoremove’ to remove them.
The following packages will be REMOVED:
pure-ftpd* pure-ftpd-common*
0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
After this operation, 992 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 127926 files and directories currently installed.)
Removing pure-ftpd (1.0.50-2.1) …
Removing pure-ftpd-common (1.0.50-2.1) …
Processing triggers for man-db (2.10.2-1) …
(Reading database … 127858 files and directories currently installed.)
Purging configuration files for pure-ftpd-common (1.0.50-2.1) …
Purging configuration files for pure-ftpd (1.0.50-2.1) … ubuntu@instance-test:~$ sudo apt autoremove
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following packages will be REMOVED:
openbsd-inetd tcpd update-inetd
0 upgraded, 0 newly installed, 3 to remove and 0 not upgraded.
After this operation, 290 kB disk space will be freed.
Do you want to continue? [Y/n] Y
(Reading database … 127842 files and directories currently installed.)
Removing openbsd-inetd (0.20160825-5) …
Removing tcpd (7.6.q-31build2) …
Removing update-inetd (4.51) …
Processing triggers for man-db (2.10.2-1) … ubuntu@instance-test:~$ sudo apt install pure-ftpd -y
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following additional packages will be installed:
openbsd-inetd pure-ftpd-common tcpd update-inetd
The following NEW packages will be installed:
openbsd-inetd pure-ftpd pure-ftpd-common tcpd update-inetd
0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
Need to get 367 kB of archives.
After this operation, 1,282 kB of additional disk space will be used.
Get:1 Index of /ubuntu jammy/main amd64 update-inetd all 4.51 [24.9 kB]
Get:2 Index of /ubuntu jammy/universe amd64 tcpd amd64 7.6.q-31build2 [25.2 kB]
Get:3 Index of /ubuntu jammy/universe amd64 openbsd-inetd amd64 0.20160825-5 [26.3 kB]
Get:4 Index of /ubuntu jammy/universe amd64 pure-ftpd-common all 1.0.50-2.1 [148 kB]
Get:5 Index of /ubuntu jammy/universe amd64 pure-ftpd amd64 1.0.50-2.1 [143 kB]
Fetched 367 kB in 1s (456 kB/s)
Preconfiguring packages …
Can’t exec “/tmp/update-inetd.config.NhvPqD”: Permission denied at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 178.
open2: exec of /tmp/update-inetd.config.NhvPqD configure failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
Selecting previously unselected package update-inetd.
(Reading database … 127816 files and directories currently installed.)
Preparing to unpack …/update-inetd_4.51_all.deb …
Unpacking update-inetd (4.51) …
Selecting previously unselected package tcpd.
Preparing to unpack …/tcpd_7.6.q-31build2_amd64.deb …
Unpacking tcpd (7.6.q-31build2) …
Selecting previously unselected package openbsd-inetd.
Preparing to unpack …/openbsd-inetd_0.20160825-5_amd64.deb …
Unpacking openbsd-inetd (0.20160825-5) …
Selecting previously unselected package pure-ftpd-common.
Preparing to unpack …/pure-ftpd-common_1.0.50-2.1_all.deb …
Unpacking pure-ftpd-common (1.0.50-2.1) …
Selecting previously unselected package pure-ftpd.
Preparing to unpack …/pure-ftpd_1.0.50-2.1_amd64.deb …
Unpacking pure-ftpd (1.0.50-2.1) …
Setting up pure-ftpd-common (1.0.50-2.1) …
Setting up update-inetd (4.51) …
Setting up tcpd (7.6.q-31build2) …
Setting up openbsd-inetd (0.20160825-5) …
Setting up pure-ftpd (1.0.50-2.1) …
Processing triggers for man-db (2.10.2-1) …
Scanning processes…
Scanning linux images…
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host. ubuntu@instance-test:~$ sudo groupadd -g 2001 ftpgroup
groupadd: group ‘ftpgroup’ already exists ubuntu@instance-test:~$ sudo useradd -u 2001 -s /bin/false -d /bin/null -c “pureftpd user” -g ftpgroup ftpuser
useradd: user ‘ftpuser’ already exists ubuntu@instance-test:~$ sudo systemctl start pure-ftpd ubuntu@instance-test:~$ sudo mkdir /etc/ssl/private
mkdir: cannot create directory ‘/etc/ssl/private’: File exists ubuntu@instance-test:~$ sudo 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
…++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
…++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ubuntu@instance-test:~$ sudo rm -R /etc/pure-ftpd ubuntu@instance-test:~$ sudo mkdir /etc/pure-ftpd
ubuntu@instance-test:~$ sudo cp /usr/local/CyberCP/install/pure-ftpd-one/* /etc/pure-ftpd/ ubuntu@instance-test:~$ sudo systemctl restart pure-ftpd
Job for pure-ftpd.service failed because the control process exited with error code.
See “systemctl status pure-ftpd.service” and “journalctl -xeu pure-ftpd.service” for details. ubuntu@instance-test:~$ sudo systemctl status pure-ftpd
× pure-ftpd.service
Loaded: loaded (/etc/init.d/pure-ftpd; generated)
Active: failed (Result: exit-code) since Tue 2022-12-13 07:30:06 UTC; 44s >
Docs: man:systemd-sysv-generator(8)
Process: 4761 ExecStart=/etc/init.d/pure-ftpd start (code=exited, status=2)
CPU: 88ms
Dec 13 07:30:06 instance-test systemd[1]: Starting pure-ftpd.service…
Dec 13 07:30:06 instance-test pure-ftpd[4761]: Starting ftp server:
Dec 13 07:30:06 instance-test pure-ftpd[4769]: /usr/sbin/pure-ftpd-wrapper: Cou>
Dec 13 07:30:06 instance-test systemd[1]: pure-ftpd.service: Control process ex>
Dec 13 07:30:06 instance-test systemd[1]: pure-ftpd.service: Failed with result>
Dec 13 07:30:06 instance-test systemd[1]: Failed to start pure-ftpd.service.
lines 1-13/13 (END)
I tried to install vsftp and I got error message ftpuser already exsits. So I ran command sudo deluser --remove-home ftpuser. Then I tried to install again. But I am getting error message cannot create /etc/ssh/sshd_config: Permission denied. failed
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
The following NEW packages will be installed:
vsftpd
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 123 kB of archives.
After this operation, 326 kB of additional disk space will be used.
Get:1 Index of /ubuntu jammy/main amd64 vsftpd amd64 3.0.5-0ubuntu1 [123 kB]
Fetched 123 kB in 1s (210 kB/s)
Preconfiguring packages …
Can’t exec “/tmp/vsftpd.config.IWUHne”: Permission denied at /usr/lib/x86_64-linux-gnu/perl-base/IPC/Open3.pm line 178.
open2: exec of /tmp/vsftpd.config.IWUHne configure failed: Permission denied at /usr/share/perl5/Debconf/ConfModule.pm line 59.
Selecting previously unselected package vsftpd.
(Reading database … 127830 files and directories currently installed.)
Preparing to unpack …/vsftpd_3.0.5-0ubuntu1_amd64.deb …
Unpacking vsftpd (3.0.5-0ubuntu1) …
Setting up vsftpd (3.0.5-0ubuntu1) …
Created symlink /etc/systemd/system/multi-user.target.wants/vsftpd.service → /lib/systemd/system/vsftpd.service.
Processing triggers for man-db (2.10.2-1) …
Scanning processes…
Scanning linux images…
Running kernel seems to be up-to-date.
No services need to be restarted.
No containers need to be restarted.
No user sessions are running outdated binaries.
No VM guests are running outdated hypervisor (qemu) binaries on this host.
adduser: The user `ftpuser’ already exists.
failed
Reading package lists… Done
Building dependency tree… Done
Reading state information… Done
vsftpd is already the newest version (3.0.5-0ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Adding user ftpuser' ... Adding new group ftpuser’ (1005) …
Adding new user ftpuser' (1005) with group ftpuser’ …
Creating home directory /home/ftpuser' ... Copying files from /etc/skel’ …
New password:
Retype new password:
passwd: password updated successfully
Changing the user information for ftpuser
Enter the new value, or press ENTER for the default
Full Name :
Room Number :
Work Phone :
Home Phone :
Other :
Is the information correct? [Y/n] Y
/dev/fd/63: 13: cannot create /etc/ssh/sshd_config: Permission denied
failed