Guest Posting Service for High Value Links
 

How To Change The Admin Username In WordPress

written by John Chow on August 23, 2011

SEO Gladiators

Most hackers know that the default user account in WordPress is called Admin. To add an extra layer of security, users are advised to choose a username other than Admin. If a hacker already knows what the username is, he only needs to crack the password. By having a unique username, you give the hacker one more obstacle to overcome.

Usernames Cannot Be Changed

The best time to set the username is during a new WordPress installation. The reason you want to do this is because once the admin username is set, it cannot be changed. This has caused confusion among old WordPress users who did their installations when WordPress didn’t allow you to choose a unique username. When going to the user profile in the WordPress admin control panel, they’ll discover they can change pretty much everything but the username.

How To Change The Unchangeable Username

The way to get around this problem is to create a new admin user. The information for the new account will be the same as the old admin account except the username will not be Admin.

Instead of using your name or something that is easily guessable, I recommend you choose an admin name that is like a password. For example, instead of johnchow, I would use something like Xg2tdtSDG389fjehghg. I use a program called 1Password to create my username and password.

After creating the new user, log out of your old admin account and log into the new admin account. Pull up the list of all your users and delete the old admin account (this is also a good time to delete any users who no longer write for you). WordPress will ask you who to attribute the posts from the old admin to. Select the new admin and click confirm.

Instead of changing the username, what you’ve done is created a new username to replace the old username. It would be a lot easier if WordPress simply allowed the changing of a username. Until they do, this is the only way to change it.

If you’re still running the default username on your WordPress blog, I highly recommend you follow the steps above and change it to something else. Read more WordPress security tips in the post How To Secure Your WordPress Blog.

Did you enjoy this post? Get John Chow Dot Com updates via email...

Stay up to date with all of John Chow’s tips for making money online and blog posts by subscribing via email. Your email will be kept private and never shared with anyone.

{ 49 comments }

Eric Williams August 23, 2011 at 8:04 pm

There’s another easy way. Use phpmyadmin to change the name for user 1. :)

John Chow August 23, 2011 at 8:29 pm

You can certainly do that but I want to keep this at a new users level and not introduce stuff like phpmyadmin.

Social Bookmarking Service August 23, 2011 at 10:00 pm

Yes for experts there are many ways to do it but for newbie we should keep it as simple as possible so that they can easily implement it.

Abhik August 24, 2011 at 1:25 am

How to change username in WordPress.
Wrote this post few days ago :)

thebloggernet August 24, 2011 at 8:02 am

I will be really helpful for newbie….will check it out

Shanker Bakshi @Net Profit Mantra August 24, 2011 at 8:04 am

This is awesome stuff for newbies. not everybody can knows how to do it via phpmyadmin way

online recipes August 27, 2011 at 12:09 am

Thank you, I am sure that I would mess something up if I went the phpadmin way too. Thanks Mr. Chow!

Bob August 30, 2011 at 7:02 pm

Thank you John for the insight.

Instant Eye Lift August 31, 2011 at 12:14 am

Thats how our blog was changed using phpmyadmin although, this is a more user friendly method :)

Gift Ideas September 13, 2011 at 4:27 am

you never change admin’s account but create a new admin account.

Social Bookmarking Service August 23, 2011 at 8:26 pm

That one is certainly a smart move.

Many expert blogger do in this manner and this will be perfect advice for all new bie who started now.

With this post go and read this one as well …

http://www.johnchow.com/how-to-secure-your-wordpress-blog/

Instant Eye Lift August 31, 2011 at 12:15 am

I agree, you should definitely change the admin username as well as use some security functions on your blog

Study Online Masters Degrees August 23, 2011 at 10:25 pm

WOW! This is a great share John, I’m keen about starting a blog with WordPress but was concerned about the security issues but since you’ve highlighted the most common security problem of WordPress it’s good to know, I’ll be looking forward to see more blogging tips from you.

ZK @ Web Marketing Tips August 24, 2011 at 5:39 am

Security issue will be every where and every platform my dear, if your blog is on internet.

Shanker Bakshi @Net Profit Mantra August 24, 2011 at 8:06 am

You don’t have much option brother, WordPress is the best CMS and blogging software available.

Abhik August 24, 2011 at 1:23 am

Its very simple with a SQL Command

UPDATE users SET user_login=’newusername’ WHERE ID=1

Free Forms August 24, 2011 at 4:02 am

Hmm thanks Abhik appreciate to you for this trick .

Shanker Bakshi @Net Profit Mantra August 24, 2011 at 8:08 am

Noted down, this one is also very useful.

Instant Eye Lift August 31, 2011 at 12:17 am

You can do it in phpmyadmin too by viewing the users and clicking edit. ;)

Deen August 24, 2011 at 3:51 am

I didn’t realize that we cannot change the username for our word press blog… but for me precaution method is always useful.. thanks for john for this post… and to Abhik, can you please elaborate on how to use that command..
i use cpanel and the only sql thing i see is my sql database , mysql database wizard , and remote mysql..

i am total newbie here..but i like to venture to something specific.. thank in advance for your help

Instant Eye Lift August 31, 2011 at 12:19 am

If you have cpanel there should be an option for “phpmyadmin” then you should click on that, and view the mysql database you named your wordpress blog. Once you have done that, click on users and you can edit your admin username.

Hope this helps!

Free Forms August 24, 2011 at 4:06 am

Something that easily about the final users will be the member of common users group, but they still can modify the value for field user name and password, which will let initial
settings lost.

Email List Building August 24, 2011 at 4:30 am

Hey John,

This is a good reminder to keep things as secure as possible. Luckily I didn’t use admin when I was starting my blog and will avoid using it for any new sites.

PPC Ian August 25, 2011 at 7:15 pm

I agree, great security tip indeed. You can never secure your blog too much.

fas August 24, 2011 at 5:57 am

Oh so its done the same way when you sell your blog to someone!

Zander Chance August 24, 2011 at 6:55 am

Like others have said, phpmyadmin is the easiest way to do it, and something that even newbies can handle!

Heinz August 24, 2011 at 7:28 am

Hi John,
Good advice here. Another loophole want to point out, when ftp your data – in passive mode (set your ftp program — I use Fire ftp —> go to —>> edit —>>connection and remove —> hook left of ‘passive mode’ box (make sure you have ssl connection).
When storing your ftp server password, never store your real password and login (on fire ftp, instead type an additional 3-4 numbers or letters/or both, which easily can be erased during login.
My site was hacked, I did not use admin then, but I used a flimsy password that can easily be hacked.
Now it should be somehow harder, though I don’t want to challenge anyone !, my sql servers are backed up regularly, so if things go wrong, always can get back online. I use three different backup services, wordpress own export file feature, an two other services, plus backing up mysql.
All said, I don’t want to challenge the smart guys out there. I respect those guys for their skills – so – peace !
wordpressed blog africasiaeuro
P.S.: I would not mind if someone could let me know how secure my account really is, but don’t mess up my blog ! thanks.
Will be back here to inform if things went bad or not.

Paul B August 24, 2011 at 7:29 am

It can also help with SEO, it’s amazing how often the authors name is used in Wordpress :)

Shanker Bakshi @Net Profit Mantra August 24, 2011 at 8:10 am

But the way John has explained, it can be done within WP Dashboard, without touching a single piece of code.

Erwin Miradi August 24, 2011 at 12:34 pm

Nice information you shared John. Just what I needed right now, especially because it has nothing to do with any code.

windows 8 August 24, 2011 at 1:00 pm

thats useful info for future use. thanks a lot for the tip john :)

fazal mayar August 24, 2011 at 1:56 pm

good stuff, i changed my username with plugin wp optimize

Michael August 24, 2011 at 4:11 pm

This is a great post. I never really thought about people hacking into my blog. That’d be horrible. I’ll get mine changed over right away! Thanks for this idea John.

Free Forms August 24, 2011 at 11:54 pm

Yup Michael Good Going Glad to know your thinking about people hacking.

Free Forms August 24, 2011 at 11:56 pm

Thanks for this article John . It is very useful, hope you will share with us more.

Divya@ Make Money Online August 25, 2011 at 2:06 am

for me also, i want to change the admin name, is there any other way.

Kavya Hari August 25, 2011 at 4:28 am

Informative post John :) Keep doing information post on here :) thanks a lot for sharing your post on here :)

Property Marbella August 25, 2011 at 4:37 am

Try to have such a difficult password as possible, do not forget that you can use “%(=^ etc. in your password.:)

fazal mayar August 26, 2011 at 1:47 pm

yes, having a solid password with different characters is the way to go.

Instant Eye Lift August 31, 2011 at 12:20 am

Not necessarily see XKCD Password Strength – http://xkcd.com/936/

Stocksicity August 25, 2011 at 5:35 pm

Ah nice one. I expected you to go into phpmyadmin like a few others pointed out. Definitely much safer to change the username.

kishore August 26, 2011 at 8:02 am

When I was a newbie I haven’t deleted the Admin profile, due to that some hacker hacked my site and created another user and got admin privileges. After that he embedded some hidden text into my theme which caused zero hits from Google. To identify the cause I spent almost 1 and 1/2 month ( as a newbie). After noticing the hacking, I read several posts on net about securing wordpress and found a tip to delete Admin first.

So i recommend to delete the default Admin user first after creating another user profile with admin privileges.

Lalit August 27, 2011 at 6:57 am

This is really an interesting information and tip to change the user name. Thanks John for sharing it.

allan stuart September 7, 2011 at 9:44 am

john, i had clicked the 1password link but it redirect to other site.. is it normal??

hooher tod September 13, 2011 at 6:46 pm

Yes there should realize the reader to RSS my feed to RSS commentary, quite simply

ajeet September 22, 2011 at 8:10 pm

you can change using php my admin its very easy

CaptiousNut September 23, 2011 at 6:52 am

John,

If I click on or hover over your name….I can see your cloaked admin username. So are you just trying to deter robot/algo hackers or ones targeting your site in particular?

Gift Ideas September 29, 2011 at 10:56 pm

That is very easy to use guide here. Thanks.

Cheolsu October 12, 2011 at 12:46 am

I have used php admin to change it. Your steps are a lot easier too.