Acces Denied to nay FTP account

Hi, i am having some problems login in to the ftp server....
before i installed echp i had my vsftpd server running without problems but, after the installation i cannot login to the ftp server.
all other features of ehcp are running just fine, how i can check and fix this problem?

thank in advantage

  • ehcp installs and configures vsftpd to operate with mysql backend, so, if you had mysql before, and if you had some users before ehcp, then, you need to re-define those ftp users inside ehcp,
  • because vsftpd in ehcp uses mysql backend, normal/standard vsftpd uses system users, your old users do not work with ehcp installed,
  • if your old users have some files, you need also to move those files to new user folders
  • new users folders are like /var/www/vhosts/ftpusername
  • Hello. I have the same problem. I was using my user's ftp with root privileges. And i'm using proftpd. How can I just restore my ftp account?

    since ehcp re-defines ftp to be through mysql authentication,
    your old ftp account will not work. and this is normal.

    To restore it,
    just re-define your account in your ehcp gui.
    you will need to cary your files to new location by hand, in console,

    your new ftp location will be something like:/var/www/vhosts/yourftpuser

    after carrying your data to new location, issue following command in your new directory:

    cd /var/www/vhosts/yourftpuser
    chown -Rf vsftpd *

    It's working, but I can only work with the user dir. But I need to have access for whole server. As it was before EHCP installing. Can you help me with it?

    if you need a master ftp user. you create the user in ehcp panel. then edit the vsftpd.conf and add

    chroot_list_enable=YES
    chroot_list_file=/etc/vsftpd.chroot_list

    then go to /etc and create vsftpd.chroot_list and add your ftp user to that.

    ehcp install vsftpd, and new version of ehcp, uninstalls proftpd.

    you cannot use 2 ftp server at same time
    just uninstall it, still exists,
    then,
    add new ftp account in ehcp as i described here,above or below.

    if you still have problem, describe your specific problem.

    and, did you do a debug of your system? (http://ehcp.net/?q=node/771)

    Now I'm creating some user (not under a domain) and throws me error 530 'Incorrect Login'. But I've checked the vhosts dir and there is my user dir.

    check following:

  • did you add new ftp user using ehcp gui, "add ftp" commands ? did that command finished without any error ?
  • did you type, double check your password ?
  • can you see that user in mysql, phpmyadmin, ehcp db, ftpaccounts table ?
  • your system has only vsftpd installed ? do you have any other ftp servers ? to check, on command line: aptitude search ftp, on left of each package letter "i" indicates installed. look for proftpd, vsftpd, pureftp and so on. no other ftp server should be installed.
  • did you debug your system using link I gave above? (http://ehcp.net/?q=node/771)
  • Answer is "yes" to all your question. Except this:
    i ftp - The FTP client
    i lftp - Sophisticated command-line FTP/HTTP client
    i vsftpd - lightweight, efficient FTP server written

    Should I remove them? I think that the problem is not with these clients.

    * top two are normal ftp client programs,
    vsftpd is ftp server that comes with ehcp,
    so, you dont need to remove them,

    * you may use your server ip for connecting to your server, as well as domainname, ip is safer. note that, if your server is located in an internal network with respect to you, then use your server's internal ip

    * those logs is not relevant to this problem. record those logs while you try to log into your ftp.

    * on command line try: /etc/init.d/vsftpd restart

    I have tried /etc/init.d/vsftpd restart and no success.
    Also as I said there is 530 login error. And I think that vsftpd server is working, but problem is with connecting. Maybe it can't connect to DB.
    Does it have its own table for FTP user/pass? or it uses ehcp table?
    If it uses ehcp table then what user/pass it uses to connect to DB for checking user/pass?

    When I'm trying to connect to ftp, /var/log/syslog is:
    Dec 15 00:27:35 server123 kernel: [36831.123616] lo: Disabled Privacy Extensions
    Dec 15 00:27:39 server123 kernel: [36835.009193] lo: Disabled Privacy Extensions

    --------------------

    Also I have such log in /var/log/ehcp.log:

    ehcp 0.29.12- Daemon loop number:3647
    -----------daemon suspended for 10 sec ---------pwd:(/var/www/vhosts/ehcp)
    Array
    (
    )
    Array
    (
    )

    ehcp 0.29.12- Daemon loop number:3648
    -----------daemon suspended for 10 sec ---------pwd:(/var/www/vhosts/ehcp)
    Array
    (
    )
    Array
    (
    )

    ehcp 0.29.12- Daemon loop number:3649
    -----------daemon suspended for 10 sec ---------pwd:(/var/www/vhosts/ehcp)
    Array
    (
    )
    Array
    (
    )

    ehcp 0.29.12- Daemon loop number:3650
    -----------daemon suspended for 10 sec ---------pwd:(/var/www/vhosts/ehcp)
    trying re-connecting to mysql db..

    reconnect successfull.
    Array
    (
    )
    Array
    (
    )

    ehcp 0.29.12- Daemon loop number:3651
    -----------daemon suspended for 10 sec ---------pwd:(/var/www/vhosts/ehcp)

    Is it normal?
    Where is the clue? )

    Also, in /var/log/auth.log I have:
    Dec 15 00:51:31 server123 vsftpd: pam_mysql - MySQL error (Access denied for user 'ehcp'@'localhost' (using password: YES))

    where it stores vsftpd password?
    By the way, I have changed password for ehcp user after ehcp installation.

    Allahu Akbar!!!
    Yes. the problem was with that ))
    I've found the file with the vsftpd pass and changed it to current pass and all is ok now.

    if you have said that, that you changed your ehcp pass,
    it is described already in: http://www.ehcp.net/?q=node/92
    nice to hear that, you solved your problem.. selam.

    ua alaikumu ssalam ua rahmatu-Llahi ua barakatuh

    I've been using FTP hosting for some time now and never had this issue. Thanks for the solution to this problem.

    This is my /var/log/syslog:

    Dec 13 23:48:26 server123 postfix/master[1868]: warning: process /usr/lib/postfix/trivial-rewrite pid 12492 exit status 1
    Dec 13 23:48:26 server123 postfix/smtpd[2844]: warning: problem talking to service rewrite: Success
    Dec 13 23:48:26 server123 postfix/smtpd[2911]: warning: problem talking to service rewrite: Connection reset by peer
    Dec 13 23:48:26 server123 postfix/master[1868]: warning: process /usr/lib/postfix/trivial-rewrite pid 12493 exit status 1
    Dec 13 23:48:26 server123 postfix/smtpd[2912]: warning: problem talking to service rewrite: Success
    Dec 13 23:48:26 server123 postfix/smtpd[2987]: warning: problem talking to service rewrite: Connection reset by peer
    Dec 13 23:48:26 server123 postfix/master[1868]: warning: process /usr/lib/postfix/trivial-rewrite pid 12494 exit status 1

    Dec 14 00:10:48 server123 postfix/master[1868]: warning: process /usr/lib/postfix/trivial-rewrite pid 14040 exit status 1
    Dec 14 00:10:48 server123 postfix/qmgr[13936]: warning: problem talking to service rewrite: Success
    Dec 14 00:10:48 server123 postfix/pickup[1878]: 73EF840309: uid=33 from=

    Should I use my server IP for FTP connection?