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.

Having FTP Server Problem

Discussion in 'General Discussion' started by so_, Nov 12, 2008.

  1. so_

    so_ Member

    Joined:
    Nov 11, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    So I create an FTP user for my domain, I get info like:
    http://servername.example.com:2082/frontend/x3/ftp/accounts_proftpd.html

    FTP Username: username@example.com
    FTP Server: ftp.example.com
    FTP Server Port: 21
    SFTP Server Port: 22

    /var/log/secure shows:
    Nov 12 21:30:50 servername proftpd[15298]: servername.example.com (192.168.60.157[192.168.60.157]) - USER username@example.com: no such user found from 192.168.60.157 [192.168.60.157] to 192.168.61.3:21

    Every attempt I make at logging in with the password I have set fails.


    If I use the domain account I don't have a problem, for instance:
    FTP Username: domainacct
    FTP Server: ftp.example.com
    FTP Server Port: 21
    SFTP Server Port: 22

    Nov 12 21:44:59 servername proftpd[15422]: servername.example.com (192.168.60.157[192.168.60.157]) - USER domainacct: Login successful.
    Nov 12 21:44:59 servername proftpd[15422]: servername.example.com (192.168.60.157[192.168.60.157]) - Preparing to chroot to directory '/home/domainacct'

    ftp.example.com and www.example.com both point to 192.168.61.3
    servername.example.com points there too

    Do I need to configure something for the "virtual" ftp to work properly?
     
  2. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    SFTP (SSH File Transfer) will only work for the cPanel user. It will not work for virtual FTP users.

    However, virtual FTP users can use FTPS (FTP over SSL/TLS)
     
  3. so_

    so_ Member

    Joined:
    Nov 11, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Okay, that's fine, but regular ftp doesn't even work.
     
  4. Corvaire

    Corvaire Registered

    Joined:
    Nov 8, 2008
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    same issue

    Had the same problem (with dreamweaver) purchased cuteFTP pro and had no problem.
     
  5. so_

    so_ Member

    Joined:
    Nov 11, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    If that solved your the problem, how did it work? I tried:

    cuteftp 8 pro (regular and ftp w/SSL)
    filezilla
    lftp
    firefox
    ftp
    ncftp

    ncftp> open -u username@example.com ftp.example.com
    Connecting to 192.168.61.3...
    FTP Server ready.
    Logging in...
    Password requested by 192.168.61.3 for user "username@example.com".

    Password required for username@example.com

    Password: ************
    Login incorrect.
    Could not open host ftp.example.com: username and/or password was not accepted for login.


    /etc/proftpd.conf contains:
    AuthUserFile /etc/proftpd/passwd.vhosts

    /etc/proftpd/passwd.vhosts contains:
    username@example.com:$1$Vjpcaqs6$lfThfOklxIghvAGXZhLN61:20009:20006: domainuser:
    /home/domainuser/userdir:/bin/ftpsh
     
    #5 so_, Nov 13, 2008
    Last edited: Nov 13, 2008
  6. so_

    so_ Member

    Joined:
    Nov 11, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Reinstalled, still no luck

    Switching to pure-ftpd seems to work.

    Left debugging output at the end of the message here in case it's useful.

    Testing of the proftpd server on Centos 5.2 by some developers would be appreciated.
     
    #6 so_, Nov 13, 2008
    Last edited: Nov 13, 2008
  7. so_

    so_ Member

    Joined:
    Nov 11, 2008
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Output of:
    proftpd -d 10 -n -c /etc/proftpd.conf

    Code:
    servername.example.com (192.168.227.39[192.168.227.39]) - ROOT PRIVS at main.c:903
    servername.example.com (192.168.227.39[192.168.227.39]) - SETUP PRIVS at main.c:908
    servername.example.com (192.168.227.39[192.168.227.39]) - FTP session requested from unknown class
    servername.example.com (192.168.227.39[192.168.227.39]) - performing module session initializations
    servername.example.com (192.168.227.39[192.168.227.39]) - ROOT PRIVS at mod_tls.c:1015
    servername.example.com (192.168.227.39[192.168.227.39]) - RELINQUISH PRIVS at mod_tls.c:1023
    servername.example.com (192.168.227.39[192.168.227.39]) - ROOT PRIVS at mod_tls.c:1470
    servername.example.com (192.168.227.39[192.168.227.39]) - RELINQUISH PRIVS at mod_tls.c:1538
    servername.example.com (192.168.227.39[192.168.227.39]) - ROOT PRIVS at mod_delay.c:1232
    servername.example.com (192.168.227.39[192.168.227.39]) - RELINQUISH PRIVS at mod_delay.c:1234
    servername.example.com (192.168.227.39[192.168.227.39]) - ROOT PRIVS at mod_auth.c:151
    servername.example.com (192.168.227.39[192.168.227.39]) - opening scoreboard '/var/proftpd/proftpd.scoreboard'
    servername.example.com (192.168.227.39[192.168.227.39]) - RELINQUISH PRIVS at mod_auth.c:153
    servername.example.com (192.168.227.39[192.168.227.39]) - ident lookup disabled
    servername.example.com (192.168.227.39[192.168.227.39]) - connected - local  : 192.168.61.3:21
    servername.example.com (192.168.227.39[192.168.227.39]) - connected - remote : 192.168.227.39:3665
    servername.example.com (192.168.227.39[192.168.227.39]) - FTP session opened.
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'USER username@example.com' to mod_tls
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'USER username@example.com' to mod_core
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'USER username@example.com' to mod_core
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'USER username@example.com' to mod_delay
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'USER username@example.com' to mod_auth
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching CMD command 'USER username@example.com' to mod_auth
    servername.example.com (192.168.227.39[192.168.227.39]) - mod_auth_file/0.8.3: using passwd file '/etc/proftpd/passwd.vhosts'
    servername.example.com (192.168.227.39[192.168.227.39]) - no supplemental groups found for user 'username@example.com'
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching POST_CMD command 'USER username@example.com' to mod_delay
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching LOG_CMD command 'USER username@example.com' to mod_log
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_tls
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_core
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_delay
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching PRE_CMD command 'PASS (hidden)' to mod_auth
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching CMD command 'PASS (hidden)' to mod_auth
    servername.example.com (192.168.227.39[192.168.227.39]) - mod_auth_file/0.8.3: using passwd file '/etc/proftpd/passwd.vhosts'
    servername.example.com (192.168.227.39[192.168.227.39]) - no supplemental groups found for user 'username@example.com'
    servername.example.com (192.168.227.39[192.168.227.39]) - no such user 'username@example.com'
    servername.example.com (192.168.227.39[192.168.227.39]) - USER username@example.com: no such user found from 192.168.227.39 [192.168.227.39] to 192.168.61.3:21
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching POST_CMD_ERR command 'PASS (hidden)' to mod_delay
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_log
    servername.example.com (192.168.227.39[192.168.227.39]) - dispatching LOG_CMD_ERR command 'PASS (hidden)' to mod_auth
    servername.example.com (192.168.227.39[192.168.227.39]) - mod_tls/2.1.2: scrubbing 1 passphrase from memory
    servername.example.com (192.168.227.39[192.168.227.39]) - FTP session closed.
     
  8. ziax

    ziax Member

    Joined:
    Nov 26, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Hi I a new cpanel user (transferred from Plesk) and I am having trouble
    with the ftp and dreamweaver. Does cpanel support ftp from dreamweaver (ber8). did you just change to cuteftp because it was easier.
     
  9. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    cPanel itself supports essentially all FTP clients.

    However, some web browsers do not implement FTP logins well, so using a web browser for FTP is not recommended. If you wish to use your web browser for file management, please use the File Manager built into the cPanel interface.
     
  10. ziax

    ziax Member

    Joined:
    Nov 26, 2008
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Dreamweaver ftp

    Hi David,

    I am not sure if your reply was directed to me. If it did I must be missing something. I am using dreamweaver V8 to ftp and I seem to be having problems with connecting to server no matter what I put in as the settings. The main problem seems to be the host name. Is there anywhere on the forum that specifically deals with ftp settings for different ftp programs.
     
  11. thewebhosting

    thewebhosting Well-Known Member

    Joined:
    May 9, 2008
    Messages:
    1,201
    Likes Received:
    1
    Trophy Points:
    38
    Can you be more specific what kind of issue are you facing while connecting to FTP using Dreamweaver?

    Are you receiving any kind of error message? If yes then could you paste it here?
     
  12. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Generally speaking, your FTP settings should be as follows:

    hostname: Example.com
    username: your cPanel username
    password: your cPanel password

    Replace Example.com with your domain. On some servers, your username needs to be followed with @Example.com (substituting Example.com with your domain). For example: username@example.com

    Have you contacted your hosting provider regarding this? They would be able to check their FTP logs to determine what may be going wrong.
     
  13. hbouma

    hbouma Well-Known Member

    Joined:
    Jun 8, 2002
    Messages:
    49
    Likes Received:
    0
    Trophy Points:
    6
    Hi David,

    If this is still true, you may want to on the "Configure FTP Client" page remove the SFTP settings/configuration links for virtual FTP user accounts. Because its misleading then to the user that they don't have SFTP connections when the configure page indicates that they do.

    Hal
     
  14. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    It seems what is referred to on that page as SFTP is actually FTPS. I'll talk to our design team about this. Thanks for the head's up.
     
    #14 cPanelDavidG, Apr 23, 2009
    Last edited: Apr 23, 2009
  15. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Our design team is now working on correcting this verbiage. I have no ETA but it seems like it will be a relatively minor fix. Internal Case 26282
     
  16. mealto

    mealto Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    That got us as well. Tried SFTP in various forms and could not get through! We can get FTP to work with teh virtual credentials but not FTPS. Where can we tweak things to make this work? Inside WHM, we have TLS Encryption Support set to optional already. Any tips?
     
  17. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    SFTP should use for all cPanel users (but not FTP accounts they create). If this is not working for you, please let me know what version of cPanel you are using.

    FTPS is enabled by default. I am not aware of any way to disable FTPS functionality in a cPanel/WHM environment other than outright disabling the FTP server. Perhaps your FTP client has an issue with self-signed SSL certificates?
     
  18. mealto

    mealto Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    David, ok I see.

    So we know that SFTP encrypts credentials and files being uploaded. Does FTPS serve the same purpose?
     
  19. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,279
    Likes Received:
    8
    Trophy Points:
    38
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    FTPS encrypts the credentials, but not the files.
     
  20. mealto

    mealto Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    175
    Likes Received:
    0
    Trophy Points:
    16
    Perfect, then we will try to get FTPS going. For some reason, FileZilla just refuses to connect. Any tips or trouble shooting that we can do?

    btw, FTPS files uploaded still below to the cpanel user correct?
     
    #20 mealto, Jun 11, 2009
    Last edited: Jun 11, 2009
Loading...

Share This Page