Delete original admin account?

zakazak

Verified User
Joined
Dec 20, 2018
Messages
55
For security reasons I want to get rid of the standard / original user "admin".
Is it safe to:
  1. Create new user "admin2"
  2. Move all users from "admin" to "admin2"
  3. Delete admin
I already moved all users from admin to admin2 and in the list of "Administrators" it says that "admin" still uses 70GB disk space (although there aren't any backups or similar in /home/admin/).
Also I had to re-create the cronjob for the Admin-Backup since this was in "possession" of user "admin" and would also store the backups in /home/admin/ which would be deleted once deleting "admin".
Any other things I have to pay attention to when deleting admin?

Thanks!
 
For security reasons I want to get rid of the standard / original user "admin".
We already using this for more than 16 years without issue, there is no security issue to it. If you don't want to use it, just create a new admin with another username and use that and set an impossible password for the main admin.
We also have a couple of admin accounts where the main admin account is hardly or not used on some servers.

However, if you still want to do what you want, doublecheck this thread:
use at own risk ofcourse.
 
We already using this for more than 16 years without issue, there is no security issue to it. If you don't want to use it, just create a new admin with another username and use that and set an impossible password for the main admin.
We also have a couple of admin accounts where the main admin account is hardly or not used on some servers.

However, if you still want to do what you want, doublecheck this thread:
use at own risk ofcourse.

With impossible password you mean a very long/difficult password? If so, ofcourse I am doing that already with all my DA passwords.

Regarding security: it just gives one less option of becoming a potential issue. One more obstacle in bruteforcing it.

So possible ways are to re-name admin or to create a new admin, move everything to the new admin, delete old admin.

I will wait if anyone can contribute here from experience what works best :)
 
So possible ways are to re-name admin or to create a new admin, move everything to the new admin, delete old admin.

The both are possible. Actually there is no need to complicate simple things. It does not matter which way you choose. While you have a working administrator account all is fine. The difference is whether you feel good to use CLI/SSH, that's it.

So you might use the link, Richard has provided. Or just choose the way to create/delete accounts.
 
The both are possible. Actually there is no need to complicate simple things. It does not matter which way you choose. While you have a working administrator account all is fine. The difference is whether you feel good to use CLI/SSH, that's it.

So you might use the link, Richard has provided. Or just choose the way to create/delete accounts.

Thanks, that gives confidence! :)

So there is no application / service / plugin in DA that might go weird because a generic "admin" account name is missing?
I also thought about first trying to suspend "admin" to play is safe. That didn't cause any noticable errors.
In the worst case scenario I could always re-create an admin account named "admin" to fix issues?
 
So there is no application / service / plugin in DA that might go weird because a generic "admin" account name is missing?

You are the only boss on your server. And even if I don't recall any plugin using "admin" it does not necessary mean you don't use any of the like.

If you use custom made scripts, hooks or plugins they might be hardcoded to use the "admin" account. And we can not predict how would they work if you delete the account.

Plugins which I'm aware of, or which I'm using and/or writing are not hardcoded to use the "admin" account, but they rather find an administrator account from DirectAdmin API or directly from files.

So, if we talk about the default installation with no custom plugins with no custom hooks, it is safe to delete/rename the "admin" account. Otherwise you might take a risk.
 
You are the only boss on your server. And even if I don't recall any plugin using "admin" it does not necessary mean you don't use any of the like.

If you use custom made scripts, hooks or plugins they might be hardcoded to use the "admin" account. And we can not predict how would they work if you delete the account.

Plugins which I'm aware of, or which I'm using and/or writing are not hardcoded to use the "admin" account, but they rather find an administrator account from DirectAdmin API or directly from files.

So, if we talk about the default installation with no custom plugins with no custom hooks, it is safe to delete/rename the "admin" account. Otherwise you might take a risk.

Thanks for your feedback! I just deleted user "admin" and the server hasn't started to smoke or burn yet :)
 
Thanks for your feedback! I just deleted user "admin" and the server hasn't started to smoke or burn yet :)

Give it time. A long uncrackable password along with fail2ban would have been better.
 
Give it time. A long uncrackable password along with fail2ban would have been better.
Have you ever had any troubles by deleting "admin"?

Of course I am using a very long password as well as bruteforce protection.
 
Have you ever had any troubles by deleting "admin"?

Of course I am using a very long password as well as bruteforce protection.

I have never deleted admin because we were warned against it by JBMC.
 
Back
Top