FTP Issue

ArielHost

Verified User
Joined
Sep 14, 2005
Messages
26
Location
Union, KY
Hi. I have had my server management company contacting DA support for this issue, but so far it hasn't been resolved.. however, I really need to get this fixed ASAP.

I had my server moved physically to a new data center. Since that time, any new accounts created on the server can't access FTP. Each of my hosting customers has a dedicated IP address... if they try to FTP to that IP, it won't accept their user name and password. I also tried adding FTP users to test, but those won't work either.

The odd thing is that the accounts created before the move work fine.

Anyone have ideas? Running on FreeBSD 5.4.
 
Maybe you should check your ftp.passwd file and see if the user is in that file

Since all of your user have their own IP, i believe here is the location of your ftp.passwd file:
/usr/local/directadmin/data/users/USERNAME/ftp.passwd

you may want to check out /etc/proftpd.passwd. let us know your finding

:)
 
You do realize when you changed datacenters that all the customers static IP's changed, right?

The IP's are assigned to the datacenter, not your particular server
 
Yes, of course.. I changed all the IP's of the users, that's not the problem. The users that were already on the server are not having an issue, as I mentioned in the original post - only users that I have added since the move.
 
vod said:
Maybe you should check your ftp.passwd file and see if the user is in that file

Since all of your user have their own IP, i believe here is the location of your ftp.passwd file:
/usr/local/directadmin/data/users/USERNAME/ftp.passwd

you may want to check out /etc/proftpd.passwd. let us know your finding

:)

OK - checked those files and they look correct.
 
Hello,

1) Check your Admin Level -> IP Manager.
Make sure that all dedicated IP's are set as "owned" to the correct user.

2) For each dedicated IP, check your /etc/proftpd.vhosts.conf file. Each dedicated IP should have it's own virtualhost pointint to that users ftp file.

dedicated IP ftp accounts can only log into that IP.


3) The format of the login on a dedicated IP is different than for a shared IP. There is no @domain.com at the end.


So, basically, trace it down, from the /etc/proftpd.vhosts.conf file. Check which password file that virtualhost is using. If there is no VH for the IP, then it defaults to /etc/proftpd.passwd.
Then view the ftp.passwd file. Check to make sure the user is in there.

4) If the login still doesn't work, obviously, try resetting the password. Also double check the uid/gid stored in the ftp.passwd file. It has to match the uig/gid of the directory path it's accessing.

John
 
What is not making sense to me is that users set up before the server move work fine, but ALL new users that are created are not working...
 
Hello,

Go through my checklist above.

If, for example, #1 is not right (IP's not owned), then DA will be adding the users the /etc/proftpd.passwd file instead of the ftp.passwd file, causing the problem.

John
 
Can you tell me what they've done? I have the same problem here right now. Also running freebsd 5.4. I had problems with my ftp so I reinstalled the default version.

Thanks.
 
Hello,

I don't recall exactly, but often times the /etc/proftpd.conf gets overwritten to a version that is not ours.

I'll copy:
/usr/local/directadmin/data/templates/proftpd.conf

to
/etc/proftpd.conf

And then edit it to change the |TOKENS| to their respective values (server IP mainly, I think).

John
 
Thank you for your fast answer! I already spent about an hour of twelve of trying to solve this problem, but since the re-installation of version 1.2.10.1, new users weren't able to login with FTP anymore. For my feeling, I've read ALL the posts that contained the word FTP, tried everything (also what you advised me) including some possible solutions in the FAQ, but nothing seemed to help. Even the newest version 1.3.0.rc3 didn't helped me, since I got an error during installation:
SED=/usr/bin/sed: Command not found.
Xsed=/usr/bin/sed -e s/^X//: Command not found.
Ambiguous output redirect.
*** Error code 1

To skip a lot unusefull information:

An hour ago I tried to install 1.2.10.1 again manually after de-installing everything again. Again, the problem wasn't solved but then I tried to update again to version 1.3.0.rc3 with portupgrade. At some point, I saw some errors but after a reboot it seemed that 1.3.0.rc3 was installed correctly though and was up and running (even possible to see in DirectAdmin), and till now I haven't had any problems anymore. All users, including new ones, can use FTP again.

It's strange, but it works now... I don't dare to say it too loud, but so far so good, I'm happy ;)

Again thanks for the help.
 
Back
Top