FTP account for admin/root

No, thats not true, when you log with the user, you will be in user home, so, for admin /home/admin will exist once the user is created... also backups folder and imap should be already there, so, i suppose, is more a bug than other ;)

I think, that FTP should work as standard unless there is a domain or not, usually is not suggested to use admin user for add domains, thats why should work, at least for "take" backups from folders :)

Regards
 
No, thats not true, when you log with the user, you will be in user home, so, for admin /home/admin will exist once the user is created
That is correct. But you can't ftp to it. At least I also was never able to.

Could be more then a bug then something else, but could also have something to do with the way DA is setup.
I agree that it would be better if it should work regardless of the presence of a domain.

I hope DA support can give some clarification about that, these kinds of things makes me inquisitive (I hope that's the correct word in English, means kind of curious).
 
It does work regardless of presence of a domain, but the ftp account is not created before you add a domain, but then you can delete the domain, and the ftp account still works. So we only need the admin user ftp account to be created automatically when the admin user is created when you install the server.
 
but the ftp account is not created before you add a domain
Yes that's what I said and before it doesn't work.

I didn't know however that if you remove the domain, the ftp still keeps working. In that case I fully agree with you, ftp account should be created when the admin user is created on installation.
 
I did send this thread link to DA Staff.

Probably is a bug, not big bug but is a bug to me :)

Im sure they will fix this once John read this thread.

Regards
 
Hello,

It's working as originally designed, even though some aspects of that design can be considered a bug.

Ftp accounts are only added if a domain is created, as it's part of the domain creation code.
The way I look at it is, if there are no domains under the admin account, admin should not need ftp access (although, backups may need it, in which case, just create/delete a domain)

It's similar to how no Usernames are added to MySQL until a database is created.

It's also one less thing to worry about with regards to brute force attacks.
If the account isn't setup, it can't be used.

In any case, an entry does exist here already due to how the password gets changed when it might be a different value:
http://www.directadmin.com/features.php?id=1016

but hasn't been implemented for quite a while, and may not be either, as it's fairly rare case.

John
 
Hi John,

thanks for clarification, but, as you pointed out, admin ftp access would be pretty much important for download backups of users, or, would be (i think) better to implement as default domain for admin user a domain named as server hostname with the workaround i did wrote you long time ago.

But, is just a suggestion :)

Regards
 
@John, If you do not change this, then at least please add a line text explaining this at the "Admin Backup/Transfer" page.

This has caused me a lot of problems, when after a lot of planning and timing, I was going to make a server migration from one da server to another da server, but when the time came, I was not able to make ftp transfer work, and did not understand why. I even sent you a email asking for why it was not working (several years ago). You did not suggest that the reason was because I did not add a domain, and so did not have a ftp account, and was unable to help. I was in a hurry, in the middle of the night doing server migration, and this missing admin ftp account gave me a lot of trouble!

Please understand this causes a lot of confusion. It's caused me a lot of trouble! You should make sure that everybody that install DirectAdmin understand what they need to do in order for ftp for admin user to work, or you should change it so that ftp account is created for admin user automatically. This has not been any fun.

Put information about what is needed on "Admin Backup/Transfer" page or make the ftp account be created automatically. Please. Now, I will just forget it. I don't care anymore, now I know the work around, previous I did not know what was wrong. It is not logically, how are we supposed to know that we need to add a temporary domain for ftp account to work when we need to do server migration using "Admin Backup/Transfer"?
 
Last edited:
would be (i think) better to implement as default domain for admin user a domain named as server hostname
I also think that if a hostname is given, a domain is automatically created from this hostname for admin. This way these kinds of problems would be prevented and if the admin wants another admin domain he can always change it himself later.
 
I agree about the server hostname as admin domain at setup.

I do use this setup and i'd also implement a way to make the user@domain not return as unroutable address but to get forwarded to the user email account using simply forwarders on the hostname named domain as:
username -> user email address

This also allow me to put all the server related utilities (server-status, mrtg, apc stats, etc) in this hostname and not on the IP level.

Regards
 
Back
Top