Renaming your wordpress admin

Among other things, the latest advice on hardening WordPress recommends renaming the default admin account to something — anything — other than “admin”. Simple instructions below.

To change the admin’s login name:

update wp_users SET user_login = 'webmgr' WHERE user_login = 'admin';

While you’re at it, be sure to change user_nicename as well, since that also would contain the ‘admin’ value by default:

update wp_users SET user_nicename = 'webmgr' WHERE user_login = 'webmgr';

Finally, you’ll also want to change the display_name (published as “Nick Name”) to something other than “Administrator”. Like this:

update wp_users SET display_name = 'Web Manager' WHERE user_login = 'webmgr';

So there, you’ve done it. Renamed your application super administrator so that it appears to be a mere manager.

This entry was posted in System Administration on by .

About phil

My name is Phil Lembo. In my day job I’m an enterprise IT architect for a leading distribution and services company. The rest of my time I try to maintain a semi-normal family life in the suburbs of Raleigh, NC. E-mail me at philipATlembobrothersDOTcom. The opinions expressed here are entirely my own and not those of my employers, past, present or future (except where I quote others, who will need to accept responsibility for their own rants).