The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Unable to log into FTP account

Discussion in 'General Discussion' started by 0utlier, Oct 9, 2002.

  1. 0utlier

    0utlier Well-Known Member

    Joined:
    Aug 7, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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 &user@domain.com& 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
     
  2. Iain Shortreed

    Joined:
    Oct 8, 2002
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    1
    try user@mainip e.g. say ur servers ip was 64.21.121.052
    then try user@64.21.121.052

    if this works then email me for more info
    iain2002@msn.com

    hope that helps a bit i can explain better if that works!;)
     
  3. Shi

    Shi Member

    Joined:
    Feb 19, 2002
    Messages:
    18
    Likes Received:
    0
    Trophy Points:
    1
    bah
    I got this problem too.
    Works on the main server ip but not the specific ip it was setup with.
     
  4. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    Check out the ftp record in the zone file for that domain.

    /var/named/domain.com.db

    That may reveal the problem.
     
  5. BJMG

    BJMG Active Member

    Joined:
    Jul 24, 2002
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
    You can also check out the zone using the &Edit a DNS Zone& option within the WHM
     
  6. 0utlier

    0utlier Well-Known Member

    Joined:
    Aug 7, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  7. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    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 .
     
  8. 0utlier

    0utlier Well-Known Member

    Joined:
    Aug 7, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  9. Juanra

    Juanra Well-Known Member

    Joined:
    Sep 22, 2001
    Messages:
    777
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Spain
    In the VirtualHost section of proftpd.conf for that domain there's an entry like this:

    AuthUserFile /etc/proftpd/username

    Check if that file exists, check its permissions, compare it against the corresponding entries in passwd.vhosts, see if there's some difference in the password field or somewhere else.
     
  10. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
  11. 0utlier

    0utlier Well-Known Member

    Joined:
    Aug 7, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  12. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    Assuming you've also checked what Juanra told you to earlier, the next question is: Does this domain have FrontPage extensions installed?
     
  13. 0utlier

    0utlier Well-Known Member

    Joined:
    Aug 7, 2002
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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
     
  14. moronhead

    moronhead Well-Known Member

    Joined:
    Aug 12, 2001
    Messages:
    706
    Likes Received:
    0
    Trophy Points:
    16
    It does make sense. A case of double identity. ;)
     
Loading...

Share This Page