We use cookies to personalize content, to provide social media features and to analyze our traffic. We also share information about your use of our site with our social media, advertising and analytics partners. For information on how to change your cookie settings, please see our Privacy policy. Otherwise, if you agree to our use of cookies, please continue to use our website.

Wordpress Permission Hack

I wanted to make a few edits to some blog drafts but lacked sufficient permissions. I'm no WordPress expert and our IT staff had left for the day. Here's a quick way to get WP admin privileges if you have a root password for the relevant server:

  • Retrieve the WordPress mysql admin username and password from wp-config.php. (This file is at the WordPress base directory.)
  • In mysql, look in wordpress.wp_users to find your userid.
  • Update your wp_level to 10.

Shazam -- you're good to go. Happy edits.

Join the Discussion