How to safely change admin account username

heybuddy

Verified User
Joined
Mar 28, 2022
Messages
36
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
 

realcryptonight

Verified User
Joined
Nov 16, 2019
Messages
412
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.
 

heybuddy

Verified User
Joined
Mar 28, 2022
Messages
36
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?
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
1,878
Location
UA
move user to newly created reseller (new admin-account)
/usr/local/directadmin/scripts/move_user_to_reseller.sh <user> <oldreseller> <newreseller>
 

heybuddy

Verified User
Joined
Mar 28, 2022
Messages
36
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.
 

Zhenyapan

Verified User
Joined
Feb 23, 2018
Messages
1,878
Location
UA
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.
 
Top