How ftp accounts for default domains on owned IP's work


Enter Your Query:
Use '%' for wildcards and quotes for "exact phrases"


Top Level » Ftp

How ftp accounts for default domains on owned IP's workLast Modified: Jul 28, 2011, 3:58 pm
Note: new version of DA have the unified_ftp_password_file option enabled by default, thus all ftp accounts will be in /etc/proftpd.passwd, and the /etc/proftdp.vhosts.conf will be empty.


Proftpd supports IP based FTP hosting.
DA makes use of this for owned IP by adding virtulahosts for owned IPs in the /etc/proftpd.vhosts.conf file.
These owned accounts use their own password file (stored by the user) in:
/usr/local/directadmin/data/users/username/ftp.passwd
All other accounts on shared IPs are all stored in /etc/proftpd.passwd.

An owned IP address can still have multiple domains on it (all setup under the 1 User account).
For the first domain, it's labeled as the "default domain".  For this domain user accounts do not use the @domain.com syntax at the end of the login name.  A simple "user" is all that's required.  This exact format is specified on the Ftp page in DirectAdmin under the "Login" column.

If a domain isn't behaving correct (you want it to be the default domain, but it isn't), you can tell DirectAdmin that it's the default domain by editing:

/usr/local/directadmin/data/users/username/domains/domain.com.ftp

and specify:

defaultdomain=yes

instead of:

defaultdomain=no

This will tell DA to create ftp accounts for this domain without the @domain.com syntax.
 
Related Helpfiles
How to run proftpd in debug mode

© 2018 JBMC Software, Suite 173  3-11 Bellerose Drive, St Albert, AB  T8N 1P7  Canada.  Mon-Fri 9AM-5PM MST