Cant login to FTP account created from DirectAdmin

BooDaddy

Verified User
Joined
Feb 20, 2009
Messages
46
I am having problems getting ftp accounts created from within the domain to login.

Every account account I create from the user level FTP management will not loging. The FTP client always gives "login incorrect"

I checked my proftpd.conf and the line: AuthUserFile /etc/proftpd.passwd was in there.

All of the users that I create show up in proftpd.passwd and the users that are created from a domain show up with @username

My proftpd.vhosts.conf looks like this (with the IP digits ** out.)

Code:
<VirtualHost 64.251.23.***>
        ServerName              "ProFTPd"
        ExtendedLog             /var/log/proftpd/64.251.23.***.bytes WRITE,READ userlog
        AuthUserFile            /etc/proftpd.passwd

</VirtualHost>
<VirtualHost 64.251.23.***>
        ServerName              "ProFTPd"
        ExtendedLog             /var/log/proftpd/64.251.23.***.bytes WRITE,READ userlog
        AuthUserFile            /etc/proftpd.passwd

</VirtualHost>
<VirtualHost 64.251.23.***>
        ServerName              "ProFTPd"
        ExtendedLog             /var/log/proftpd/64.251.23.***.bytes WRITE,READ userlog
        AuthUserFile            /etc/proftpd.passwd

Does that look correct?

What else should I check? my proftpd.conf looks OK. I will post it in here if I need to
 
Virtual logins are not @username but username@domain, and be sure to use the complete string as username.
If, for example, you have domain.example and you add username2, the FTP login will be "[email protected]", the FTP hostname "ftp.domain.example" etc.
 
tillo,
Thanks for the reply, I have tried using [email protected] for the username and I have tried ftp.domain.com for the address.

I have also tried just about all other variants to, such as user+domain.com. No matter what I try, i always get a "login incorrect". Now, the domain owner is able to login to ftp with no problems, but any FTP accounts created for the domain will not login.
 
Does /etc/proftpd.conf have

Include /etc/proftpd.vhosts.conf

You might want to start proftpd in non daemon mode to see the errors that are occuring.

Also that auth user file is wrong. It should be different for each vhost.

Authuserfile /usr/local/directadmin/data/users/<USERNAME>/ftp.passwd
 
Last edited:
Yeah, my proftpd.conf had Include /etc/proftpd.vhosts.conf at the very end. Here is my proftpd.conf:

Code:
ServerName              "ProFTPd"
ServerType              standalone

Port                    21
UseReverseDNS           off
TimeoutLogin            120
TimeoutIdle             600
TimeoutNoTransfer       900
TimeoutStalled          3600

ScoreboardFile                  /var/run/proftpd/proftpd.pid

TransferLog             /var/log/proftpd/xferlog.legacy
LogFormat               default "%h %l %u %t \"%r\" %s %b"
LogFormat               auth    "%v [%P] %h %t \"%r\" %s"
LogFormat               write   "%h %l %u %t \"%r\" %s %b"

#DON'T modify this log format.  Its used by DirectAdmin to determine user usage
LogFormat               userlog "%u %b"
ExtendedLog             /var/log/proftpd/|IP|.bytes WRITE,READ userlog

AuthUserFile                    /etc/proftpd.passwd
DefaultServer           on

#AuthPAM off

<Global>
        DeferWelcome            on

        RequireValidShell       no

        DefaultRoot             ~
        DirFakeUser on ftp
        DirFakeGroup on ftp

        User                    ftp
        Group                   ftp
        #UserAlias              anonymous ftp

        AllowStoreRestart       on
        AllowRetrieveRestart    on

        Umask                   022
        DisplayLogin            welcome.msg
        DisplayFirstChdir       readme
        AllowOverwrite          yes
        IdentLookups            off
        ExtendedLog             /var/log/proftpd/access.log WRITE,READ write
        ExtendedLog             /var/log/proftpd/auth.log AUTH auth

        #
        # Paranoia logging level....
        #
        #ExtendedLog    /var/log/proftpd/paranoid.log ALL default

</Global>

Include /etc/proftpd.vhosts.conf


Does that look ok?

Also you mentioned:
Also that auth user file is wrong. It should be different for each vhost.

Authuserfile /usr/local/directadmin/data/users/<USERNAME>/ftp.passwd

How do I get DA to do this? Will I need to do this for every user I create?
 
I FIXED IT!!!
I noticed that my DA proftpd.conf files were just located in /etc There was an old proftpd.conf file in /etc/proftpd from where I was using VirtualMin before I switched to DA.

I simply copied the correct proftpd.conf, proftpd.vhosts.conf, and proftpd.passwd over to the directory /etc/proftpd and restarted proftpd.
Now I am able to login with vhost created FTP accounts.

Now, was that the correct fix? will I run into any issues in the future (like log files and what not)
 
I wouldnt see why not. As long as its the proftpd.conf for da you should be fine I dont think it ever gets touched unless your installing. The proftpd.passwd might be out of date you can follow this guide to rewrite it --> http://help.directadmin.com/item.php?id=205

Make sure the vhosts.conf lists all of your ips that you host other then that it wont get touched unless you add a new ip to the box.
 
Back
Top