[BUG?] ProFTP and ftp.passwd

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,418
Location
London UK
I added a reseller with a dedicated IP, then changed their IP to the server IP, then changed the original IP to shared. The /etc/proftpd.vhosts.conf still had the original IP entry in, therefore couldn't log in with that IP until I removed that entry - help from 1) in this post.
 
Last edited:
Hello,

Are you using the unified_ftp_password_file option? (recommended)
Code:
cd /usr/local/directadmin
./directadmin c | grep unified_ftp_password_file
all new installs should have this option set.

Related:
http://www.directadmin.com/features.php?id=1134

If this option is enabled then DA won't touch the /etc/proftpd.vhosts.conf, since it's not supposed to be used at all (should be empty).

Looking over the code, if that option is enabled, no swapping/removing/adding VHs in the proftpd.vhosts.conf is done at all.

On a side note, the mentioned post referring to people manually changing the status of their server IP to be owned, which essentially breaks everything as each box needs a server IP (for DA). I'm not sure that's the case here, but the concept of the solution is probably along the same lines if a VH existed that shouldn't have.

John
 
If I use the unified_ftp_password_file=1, I imagine the ftp logins will change to just the username and not username@domain?
 
The only affected ftp accounts will be those that are currently "owned", as they the @domain.com will be added to the end of the username. You can run the "Simulation" (bottom of the guide) which doesn't affect anything and lets you know what will change.

John
 
Back
Top