Unable to log into FTP account

0utlier

Well-Known Member
Aug 7, 2002
46
0
156
Hello,

This may not be an explicit Cpanel issue; However, I figured I would tap the collective wisdom of the group as there are many on this board infinitely smarter than I. I've searched the archives and tried all the suggestions I found, but to no avail.

I host someone that has their own IP, but unable to ftp to their account via IP address or domain name. The user/pass works fine for ssh and Cpanel logins. I've tried the login name &[email protected]& and password, but that didn't work. I've tried resyncing passwords, I looked at proftpd.conf and it looks fine (I'm no guru though). I've tried changing passwords then resyncing, but still unable to log in via their domain name or IP. Keep in mind they can log into their account just fine through the main server IP or domain name. It seems like a virtual host entry is incorrect in proftpd.conf? The file looks correct based on similar entries, but maybe I've been staring at this computer screen too long... Any suggestions would be greatly appreciated. Thank you.

Cpanel 5.0.0-R175
WHM 5.0.0
RedHat Linux 7.3
 

Shi

Member
Feb 19, 2002
18
0
301
bah
I got this problem too.
Works on the main server ip but not the specific ip it was setup with.
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
Check out the ftp record in the zone file for that domain.

/var/named/domain.com.db

That may reveal the problem.
 

BJMG

Active Member
Jul 24, 2002
27
0
151
You can also check out the zone using the &Edit a DNS Zone& option within the WHM
 

0utlier

Well-Known Member
Aug 7, 2002
46
0
156
I Compared /var/named/sitename.com.db of the domain in question side by side with the .db of a site that works as it should. The domain that doesn't work looks just as it should when compared with the .db file of a domain that does work properly. I'm still at a loss... It's gotta be something silly I'm overlooking. If you have more ideas I'm all ears as I would like to get this solved. Thank you for your time.

Scott Goodwin
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
In the zone file for the IP-based domain, are the IP numbers for ftp and domain.com. records the same, like this?

domain.com. 14400 IN A 180.171.6.113
ftp 14400 IN A 180.171.6.113

If there's no IP address for the ftp record, is it pointing to domain.com, like this?

ftp 14400 IN CNAME domain.com.

Also try to log into FTP as domain.com, instead of ftp.domain.com .
 

0utlier

Well-Known Member
Aug 7, 2002
46
0
156
The zone file for the IP based domain does look the same.

midnightgarden.com. 14400 IN A 64.191.18.36
ftp 14400 IN CNAME midnightgarden.com.

As you can see, the ftp record does not point to the IP, but rather the domain name.

I tried logging into ftp with midnightgarden.com instead of ftp.midnightgarden.com but it still cannot log on and prompts me for a password. The password is correct as I can log into shell and Cpanel with it... &shrug&. Any other ideas? Thank you for taking the time to help me.

Scott Goodwin
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
Look into /etc/proftpd/username and make sure that there's a line for the username, like this:

username:MMugv/hytoaFg:32006:509::/home/username:/bin/bash

Also make sure your /etc/proftpd/passwd.vhosts has a line all on its own for the same username, like this:

username:MMugv/hytoaFg:32006:509:username:/home/username:/bin/bash

The easiest way to grab the info from these files would be:

grep username path_to_file

Compare the contents with the examples here. Make sure the encrypted passwords in both files match.
 

0utlier

Well-Known Member
Aug 7, 2002
46
0
156
Below is what's in the files. Obviously, &username& is the users login name &I know you knew that, but just for clarification&.

Any ideas? Again, thank you for allowing me to waste your time.

Scott Goodwin



/etc/proftpd/username
username:5eQNCuYbnvoj.:32006:32006::/home/username:/bin/bash

/etc/proftpd/passwd.vhosts
username:5eQNCuYbnvoj.:32006:32006:username:/home/username:/bin/bash
 

moronhead

Well-Known Member
Aug 12, 2001
706
0
316
Assuming you've also checked what Juanra told you to earlier, the next question is: Does this domain have FrontPage extensions installed?
 

0utlier

Well-Known Member
Aug 7, 2002
46
0
156
OK... I want to thank all those that contributed in helping me solve this problem... especially moronhead. I hope this thread helps someone in the future.

The problem was simple, just as I thought, and I simply overlooked it. Within proftpd.conf there were two virtual host entries for the same IP. Not sure how this happened but that's another issue. Appearently the first entry &owned& the IP so when you tried to log into ftp via that IP or associated domain name it wanted the login and password for the first entry for that IP. Of course the first entry for that IP was not the domain that was actually using the IP, therefore the user and pass was wrong according to proftp. I hope that makes sense.

To fix the problem I simply deleted everything between, and including &virtualhost& and &/virtualhost& of the entry using the IP that belonged to someone else. Hopefully that makes sense. Again, thanks for all that took the time to help.

Scott Goodwin