Probably the first thing you should do once you have WordPress installed and running is to get rid of the admin account, if you have one.
Admin is the default administrator account. Many WordPress installers already give you the option of having a different name for your administrator, but if you didnâ€™t get that option (or decided to go for a â€œpure defaultâ€ install) you need to get rid of it, because it is the number one target for hacking a WordPress site.
Unfortunately you canâ€™t simply rename an account. What you can do, however, is to create a second administrator account (with a different name, naturally) and then delete the first one.
- Go to Users -> Add NewÂ
- Fill in Username with the login name of the new administrator.
- Fill in E-mail with the email address of the new administrator.
Note:Â You canâ€™t have two accounts with the same email address, so you may want to change the email address of the admin account to something else (perhaps a dummy email address) before you add this new administrator.
- Fill in Password and Repeat Password with a password for the new administrator. Note the strength indicator
â€” you want this to be green, indicating a strong password. The hint says â€œThe password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).â€ I may discuss managing strong passwords at a later time. In the meantime you might want to send the new password to the new administrator (who is really you!) by email by checking the Send Password? box.
- Select â€œAdministratorâ€ as the Role, then click Activate User.
- Now that youâ€™ve created a new administrator, log out of the site and log back in as the new administrator using the new login name and password.
- While logged in as the new administrator, go to Users -> All Users.Â
- When you hover over the admin user in the list youâ€™ll see a Delete link appear. Click on it.
- You will be asked which user to assign adminâ€™s posts to. Select the new administrator in the pull-down and click the button.
Your old admin user is now gone, and your site has its first level of protection against being hacked!