Changing Your WordPress Username

You should already know that keeping the default login username, admin, is like leaving your front door open.

Hackers are searching for sites like this because all they need to do then is use a brute force attack to work out your password and gain entry to your database and files.

Think about what you can lose if this happens.

I’ve already reported on the 3 most common vunerabilites hackers exploit to get into your site.

If they already know that the address to your login page ends in wp-login.php and your username is admin, then all they need to do is try what is a called a brute force attack to guess your password.

One simple solution to fix this vunerbility is to change your WordPress login username.

I’ve already shown you how to change your username & password using phpMyAdmin, here’s another way.

Add New User

  1. Login to your Dashboard (admin page)
  2. Go to Users > Add New and create a new user for yourself. Make sure the role is as an Administrator and at least 10 digits long like your password.
  3. Create a new password which is at least 10 digits long. Make it even stronger by using both upper and lower case letters, numbers and symbols like ! ” ? $ % ^ & ).

Add New User

Delete Your Old Administrator Profile

Once you’ve setup your username on your new admin profile, you’ll receive a password for this user. You can now login and delete your old admin user profile and attribute the posts to your new profile.

  1. Login using your new details and navigate to the Users > All Users screen
  2. Select your old admin user and delete it

Delete Old Admin User

Attribute All Posts To New User

The final step you need to take is to make sure all your posts are attributed to your new user profile.

When you delete your old user profile for admin, you be asked “What should be done with posts and links owned by this user?”

Make sure you attribute all posts to your new user profile you created as an administrator.

Assign Posts To New User

Note: You CANNOT delete your existing admin username until you have created a new username, assigned it the role of admin and logged in using this new admin username and password. Then you’ll find a delete link.

Additional Tips

  1. When displaying your new user profile name, use your real name rather than the 10 digit plus username you created for security reasons.
  2. Install the limit login attempts plugin to further strengthen your site.

Comments

11 responses to “Changing Your WordPress Username”

  1. Brad, I appreciate your replies, seems one of my Q’s was misunderstood. I do have a different name for the admin and the display name. However when you put the cursor over the author name ( such as here , over Brad Dalton, I see admin) so over my new display name I actually see the new log in/admin name.
    And another question; After I’ve deleted my initial admin, all the comments I had though remained, however the avatar disappeared. Should I create a new user with the previous email, though with low/ not admin roles, so the avatar returns?
    Thanks agin.

  2. Oh, and another question. Seems that after I’ve changed ( added) a different admin, once you point the mouse to the author ( the admin) you can actually see the admin’s name in the url, not just the user name.. how can this be changed?

    1. Brad Dalton Avatar
      Brad Dalton

      Change the nickname and display name:

      Nickname (required)

      Display name publicly as

  3. Hi Brad, thanks for this post. Can the new admin use the same email/display name/G+ account as the old admin? meaning all the rest is the same just the log in name changes.

    1. Brad Dalton Avatar
      Brad Dalton

      I think so AB. If you can’t use the same email address when you create the new username, you can change it after deleting the old user.

  4. Mike Logan Avatar
    Mike Logan

    Thanks Brad…I get it now. Have to log back in as the new admin to delete the old admin. Odd I did not get notified by email when you replied? Wonder why? FYI ~ I do exclusively WordPress websites for clients and one of my sites has been hacked twice over at GoDaddy on the shared server. Nothing major…they just hacked my header.php and inserted all that viagra links and crap. What I don’t get is how they get in? I update my WP and plugins on a regular basis and I have a strong password. Could this be a GoDaddy issue because I have heard alot of WP sites hosted there have this problem?

    1. Brad Dalton Avatar
      Brad Dalton

      No worries Mike

  5. Mike Logan Avatar
    Mike Logan

    How are you suppose delete the old admin account…all mine has is an edit button…no delete button at all for the admin account????

    1. Hi Mike.

      You need to create a new user with the role of admin and then sign in as that new admin user.

      Then you can delete the old admin and assign the posts to the new admin user.

      You can’t delete the old admin user until you have signed in as the new admin.

  6. Patrick Avatar

    Good information, Brad.

    I’ve done something similar and I’m wondering if it would be equally effective: since I didn’t know you could delete a user without automatically deleting all of those posts, I created an alternate username, then went into my users table and switched the “role” of the old Admin user to “none.” I figure, that way, if someone DID guess that password, they still wouldn’t be able to get in and do anything.

    Am I right, or do I still need to delete the user altogether?

    1. Hi Patrick. When you delete a user after signing in as the new admin, you can assign the posts to another user.

      Test what you have done.

      As long as the old user doesn’t have admin status it should be o.k but you may as well delete it and assign the post to the new admin user.

      Make sure you also connect the new user to your Google plus account.

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.