FTP accounts created under wrong IP/AuthUserFile?

zylon

Verified User
Joined
Sep 8, 2008
Messages
12
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?
 
Instead of moving everybody to the same main IP of the server, can I make the IP shared so multiple users can have their FTP users under that IP?
 
You can; you have to change some files manually, and I don't remember the details. You may find information on these forums, or perhaps someone else will reply.

Jeff
 
I find this highly unintuitive.

If you add two or more users under a different IP than the primary IP of the server, FTP users will not function for any users but the first on this IP.

Is there a logical explanation for this or can this be seen as a bug? I don't understand why it's done this way.
 
What is unintuitive? If an IP# is owned by a user, then no other uses can use it. If an IP# is shared, then multiple users can use it.

I've never seen FTP fail when two users shared an IP# that wasn't the main IP# of the server.

Jeff
 
Back
Top