How to safely change admin account username

heybuddy

Verified User
Joined
Mar 28, 2022
Messages
38
Hello,

Everyday I receive thousand of failed login to either my 2222 port or my SSH port.

I want to change admin to something else without break the system.

What is the safest way to do that?

Thanks
 
This is how I did it.

1. Create an new admin account.
2. Login to the new admin account.
3. Delete the old admin user/account.

And as far as I know DirectAdmin does not care if the admin user exist or not.
 
Hello,

Thanks for your answer.

The problem is, I have created some users under admin account.
If I delete the account or rename it, will that affect my users or domain under that admin user?
 
move user to newly created reseller (new admin-account)
/usr/local/directadmin/scripts/move_user_to_reseller.sh <user> <oldreseller> <newreseller>
 
Hi,

I have changed my default admin username to something else, no more failed login so far.

I keep port 22 for my SSH since I don't think changing the port other than 22 is helping much.

Thanks guys for your recommendation.
 
I keep port 22 for my SSH since I don't think changing the port other than 22 is helping much.
it helps too, on other port like 3579 - there is no attempts at all, 99.9 bots trying defaults, also most scanners checks first 999 ports.
 
Back
Top