We use cookies. You have options. Cookies help us keep the site running smoothly and inform some of our advertising, but if you’d like to make adjustments, you can visit our Cookie Notice page for more information.
We’d like to use cookies on your device. Cookies help us keep the site running smoothly and inform some of our advertising, but how we use them is entirely up to you. Accept our recommended settings or customise them to your wishes.
×

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