I think there is a bug in DirectAdmin regarding the creating of extra FTP accounts under a user. Or at least, it's unintuitive.
Summary: FTP accounts created in other AuthUserFile than expected
Description: I have a server with primary IP 192.168.0.1 and secondary IP 192.168.0.2.
I have two users under IP 192.168.0.2. User1 and User2.
User1 has domain1.com and User2 has domain2.com.
The main directadmin account of both users works fine under FTP to 192.168.0.2.
If I add an FTP Account called [email protected] in the user-level of the user1.com, it works fine on 192.168.0.2. It does not work on 192.168.0.1, but that is to be expected.
However, if I add an FTP Account called [email protected] in the user-level of the user2.com, it does not work on 192.168.0.2. It does however work on 192.168.0.1.
I believe it is due to the following:
In IP Management it shows:
192.168.0.2 owned admin user1
In /etc/proftpd.vhosts.conf it shows:
<VirtualHost 192.168.0.2>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/192.168.0.2.bytes WRITE,READ userlog
AuthUserFile /usr/local/directadmin/data/users/user1/ftp.passwd
</VirtualHost>
I see that the FTP accounts for user1 are added to /usr/local/directadmin/data/users/user1/ftp.passwd, but the FTP accounts for user2 are added to /etc/proftpd.passwd.
I expected the FTP accounts for all users under IP 192.168.0.2 to be created in the same AuthUserFile.
Am I doing something wrong or is this a bug?
Summary: FTP accounts created in other AuthUserFile than expected
Description: I have a server with primary IP 192.168.0.1 and secondary IP 192.168.0.2.
I have two users under IP 192.168.0.2. User1 and User2.
User1 has domain1.com and User2 has domain2.com.
The main directadmin account of both users works fine under FTP to 192.168.0.2.
If I add an FTP Account called [email protected] in the user-level of the user1.com, it works fine on 192.168.0.2. It does not work on 192.168.0.1, but that is to be expected.
However, if I add an FTP Account called [email protected] in the user-level of the user2.com, it does not work on 192.168.0.2. It does however work on 192.168.0.1.
I believe it is due to the following:
In IP Management it shows:
192.168.0.2 owned admin user1
In /etc/proftpd.vhosts.conf it shows:
<VirtualHost 192.168.0.2>
ServerName "ProFTPd"
ExtendedLog /var/log/proftpd/192.168.0.2.bytes WRITE,READ userlog
AuthUserFile /usr/local/directadmin/data/users/user1/ftp.passwd
</VirtualHost>
I see that the FTP accounts for user1 are added to /usr/local/directadmin/data/users/user1/ftp.passwd, but the FTP accounts for user2 are added to /etc/proftpd.passwd.
I expected the FTP accounts for all users under IP 192.168.0.2 to be created in the same AuthUserFile.
Am I doing something wrong or is this a bug?