proftpd virtual ftp user login problems

NoBaloney2

NoBaloney Internet Svcs.
Joined
Jun 17, 2007
Messages
496
Location
California
We're having problems with virtual ftp user logins.

I've done some research and here's what I'm finding:

When I create a new virtual ftp user ([email protected]) in the DirectAdmin control panel, the file at /usr/local/directadmin/datga/users/example/ftp.passwd DOES get updated, but the file at /etc/proftpd.passwd does not.

And because the latter doesn't get updated, ftp to those virtual users is impossible; they can't login.

I'm not sure when this started happening.

The file appears to have the correct ownership and permissions:
Code:
-rw-r----- 1 root ftp  14512 Oct 16 16:07 proftpd.passwd
and proftpd appears to be running as ftp:
Code:
ftp       4233  0.0  0.0   2768  1424 ?        Ss   Apr09   0:34 proftpd: (accepting connections)
The problem does not appear to be that file isn't read, but rather that it's not being updated.

I've seen this on several systems. Has anyone else noticed it?

Jeff
 
Hi Jeff,

Relating to this:
http://help.directadmin.com/item.php?id=122

DA adds ftp accounts to the per-da-user ftp.passwd file if that DA account is on an "owned" IP address.

Check this by going to:
Admin Level -> IP Manager

Any user with an owned IP address should have that IP and ftp.passwd file set in a virtualhost in the /etc/proftpd.vhosts.conf file.

Only users on shared IPs (including the server IP) are put into /etc/proftpd.passwd.

If you need more information to see what proftpd is doing, and what files it's checking, run proftpd in debug mode:
http://help.directadmin.com/item.php?id=212

Hope that helps!

John
 
Thanks, John. Immediately after you wrote me that you replied to this thread, the client wrote and said it started to work.

I have no idea what was going on because I'd of course tried restarting proftpd.

All's well that ends well!

Jeff
 
Back
Top