Unable to connect ftp user created in ispconfig

Discussion in 'Installation/Configuration' started by brickmasterj, Jul 24, 2015.

  1. brickmasterj

    brickmasterj New Member

    After creating an FTP user in ispconfig for website example.com called testclient1 (testclient being the client of example.com), the client is unable to connect through FTP on example.com (21). Client side log:
    Code:
    Command:    USER testclient1
    Response:    331 User testclient1 OK. Password required
    Command:    PASS ********
    Response:    530 Login authentication failed
    Error:    Critical error
    Error:    Could not connect to server
    But in the auth.log on the host pure-ftp spits out:
    Code:
    Jul 24 10:54:36 ISPConfig pure-ftpd: pam_unix(pure-ftpd:auth): check pass; user unknown
    Jul 24 10:54:36 ISPConfig pure-ftpd: pam_unix(pure-ftpd:auth): authentication failure; logname= uid=0 euid=0 tty=pure-ftpd ruser=testclient1 rhost=<own ip>
    Which to me looks like the user doesn't exist even though it is showing up in ispconfig...
    Upon creation of other FTP users the same happens, they show up perfectly fine in ispconfig but get rejected whilst logging in.
    Any ideas?
    EDIT: Adding a shelluser and trying to log in with SFTP doesn't work either (except with root)...
     
    Last edited: Jul 24, 2015
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    maybe you have pure-ftpd installed and not pure-ftpd-mysql (the pure ftpd version that supports connections to mysql). Try:

    apt-egt install pure-ftpd-mysql
     
  3. brickmasterj

    brickmasterj New Member

    That's the weird thing, I DO in fact have the -mysql version installed, but still it seems to not work...
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    Please restart MySQL with its init script and post the line that you see on the screen. And check if the MySQL login details in the pure-ftpd SQL file are working.
     
  5. brickmasterj

    brickmasterj New Member

    Restarting MySQL results in:
    Code:
    # /etc/init.d/mysql restart
    [ ok ] Stopping MySQL database server: mysqld.
    [ ok ] Starting MySQL database server: mysqld ..
    [info] Checking for tables which need an upgrade, are corrupt or were not closed cleanly..
    
    And what do you mean by "check if the MySQL login details in the pure-ftpd SQL file are working."?
    EDIT: Adding a shelluser and trying to log in with SFTP doesn't work either (except with root)...
     
    Last edited: Jul 24, 2015
  6. brickmasterj

    brickmasterj New Member

    Bump.
    Checked adding a user in ISPConfig does make it show up in the MySQL database just to make sure...
     
  7. brickmasterj

    brickmasterj New Member

    Issue has seemed to have magically sorted itself out after a couple of restarts and poking around in the MySQL config. Admin possibly close thread please.
     

Share This Page