Solved Unable to use FTP on admin account

patrickkasie

Verified User
Joined
Sep 21, 2021
Messages
244
Location
Een echte Hollander
Dear DirectAdmin forum,

How do you make a backup from one DA server to another DA server? Sounds easy enough, fill in the IP address, username and password in the admin backup page. But I get an access denied and it returns that the password is incorrect. That's odd, I can connect with that password through SSH. I also have this problem when trying to connect using my own computer and FTP.

Both servers use Pure FTP.
 

Attachments

  • mRemoteNG_yijP6UrJdn.png
    mRemoteNG_yijP6UrJdn.png
    9.9 KB · Views: 7
  • chrome_er2Bm1bvA0.png
    chrome_er2Bm1bvA0.png
    7.6 KB · Views: 7
  • chrome_7XVaVfAimN.png
    chrome_7XVaVfAimN.png
    30.8 KB · Views: 8
  • mRemoteNG_eOGjajX82r.png
    mRemoteNG_eOGjajX82r.png
    40.1 KB · Views: 8
  • filezilla_XKyBUt3z6d.png
    filezilla_XKyBUt3z6d.png
    8.8 KB · Views: 8
I also have this problem when trying to connect using my own computer and FTP.
Try using the external ip in DA instead of the internal ip and see if that works.
Also you selected "secure FTP" so be sure to have that setup on the other DA server or otherwise try with that option deselected.
Also be sure on the remove server the passive ports are present and open in the firewall.
 
Using the external IP didn't work instead of the internal IP
I've tried disabling the firewall (by putting CSF on VPS24 on test)
I've tried without Secure FTP
All at once
Tried with both my own PC as well as server to server. Neither worked
 
So if you try local it works? Odd.

In that case I would suggest to change the admin password via SSH so the FTP pass also gets changed.
 
It's not working at all when I try it for the admin account, doesn't matter wether I do it locally or outside. Other users do work. Other servers also do not accept FTP from the admin user. So when I do:
Code:
$ curl -u "admin:passwordhere" ftp://192.168.1.103
curl: (67) Access denied: 530
$ curl -u "admin:otherpasswordhere" ftp://192.168.1.124
curl: (67) Access denied: 530
$ curl -u "patrickkas:mypassword" ftp://192.168.1.124
drwx--x---   13 1050       1001             4096 Nov 11 09:19 .
drwx--x---   13 1050       1001             4096 Nov 11 09:19 ..
-rw-------    1 1050       patrickkas       1386 Nov  6 16:21 .bash_history
-rw-r--r--    1 1050       patrickkas         18 Aug  3  2022 .bash_logout
-rw-r--r--    1 1050       patrickkas        185 Sep 17 13:04 .bash_profile
-rw-r--r--    1 1050       patrickkas        376 Aug  3  2022 .bashrc
drwxrwxr-x    3 1050       patrickkas         22 Apr  3  2024 .cache
drwxrwxr-x    3 1050       patrickkas         22 Apr  3  2024 .config
drwxrwxr-x    3 1050       patrickkas         19 Apr  3  2024 .local
drwxrwx---    2 1050       985               114 Nov 11 02:40 .php
-rw-r-----    1 1050       12                 98 Apr  3  2024 .shadow
drwxrwx--x    2 1050       12                 24 Nov  6 11:22 .spamassassin
-rw-------    1 1050       patrickkas      10975 Nov 11 09:19 .viminfo
drwxrwx---    3 1050       12                 46 Nov  6 11:22 Maildir
drwxr-xr-x    3 1050       patrickkas        181 Nov 11 09:20 automail
drwx------    2 1050       patrickkas          6 Nov  6 11:22 backups
drwx--x--x    3 1050       patrickkas         27 Apr  3  2024 domains
drwxrwx---    3 1050       12                 57 Nov  6 11:22 imap
lrwxrwxrwx    1 1050       patrickkas         35 Nov  6 11:22 public_html -> ./domains/domainhidden.nl/public_html
drwx------    2 1050       patrickkas          6 Nov  6 11:22 tmp
And of course from my computer to both servers using the external IPs
There are no special characters in both passwords.
 
Last edited:
curl -u "admin:passwordhere" ftp://192.168.1.103
I presume if you're using this line, you fill in the remote server's admin password and not the local password?

Does FTP from home work, so with normal FTP with the same credentials to that remove server?
 
I've decided to backup to another user instead and then move the files from /home/userhere/tempfolder/ into the /home/admin/admin_backups/ folder.

The credentials are fine. SCP works, SSH works, FTP does not work for the admin, but they do work for every other user.
curl ip and curl url work, curl using ftp://ip and ftp://url don't work for the admin, but they do work for every other user.

While I don't need a solution anymore, I do find it very interesting that this is the case.
 
But I get an access denied and it returns that the password is incorrect. That's odd, I can connect with that password through SSH. I also have this problem when trying to connect using my own computer and FTP.

Hello,

I believe you changed your admin's password in a SSH console. That way you get the password changed in /etc/shadow file only. But a FTP server (both ProFTPd and PureFTPd) installed from CustomBuild/Directadmin does not use auth over PAM, but their own password file. So you might change the admin's password in DirectAdmin interface and see whether or not it solves the issue.
 
Back
Top