RKG Logo 434-978-4300

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.

If you like this post, consider subscribing to our RSS feed. You can also have new posts sent to you via email.


Related Posts

Comments

  1. Hacker, February 2, 2008:

    Perhaps a little bit more text would make this post healthy. is this some kind of hacking trick about word press?

  2. Alan Rimm-Kaufman, February 3, 2008:

    It isn’t a security hack as you need to have command line access and permissions to the wordpress server.

    It is a admin hack as it retrieves wordpress login data from outside wordpress, bypassing wordpress screens.

  3. Hacker_1, December 20, 2008:

    Is there no way for an ordinary member to hack to change his privelages to admin?

  4. Alan Rimm-Kaufman, December 20, 2008:

    If the WP install is secure, an outsider shouldn’t be able to change their privileges upward. If you’re trusted enough to have root on the server (the situation in this post), then you have the power to do anything. If an outsider compromises root, then game over, and WP privileges are the least of your worries.

Your Comment

Trackback

http://www.rimmkaufman.com/rkgblog/2006/08/31/wordpress-permission-hack/trackback/

Email Updates

Categories

Recent Comments

  • Lance: George - Thanks so much for the interview and the kind words. Jake - We have seen the gains from our tests hold up. But I am sensitive to...
  • Andrew@BloggingGuide: I liked what he said: our approach is to never be satisfied, and always seek incremental improvement. This is absolutely true...
  • Jake Minturn: Great interview! One thing I am curious about, and I’d love to get Lance’s take on this, is if these boosts in conversion...
  • Bob: Would your call center stop answering sales calls because they’ve reached their budgeted labor for the month? This is considered...
  • David: Great post George, nice to see technology story telling alive. Kept me gripped and v interesting.
  • Rex Dixon: @George - That is too bad to hear. I don’t believe we have any PPC test results on our site currently.
  • George Michie: Ken, You’re absolutely right if the CR difference between A and B is small (2 or 3%) the odds of A running the table...
  • Ken Truman: Shay - I definitely think the same logic applies to day of week analysis. George - That’s an extremely interesting way of...
  • George Michie: Hi Laurence, We think folks spend far too much time worrying about mythical penalties. The account QS is dominated by the QS on your...
  • Laurence: Hi George, Thank you for the enlightening post. You’ve sold me on how important the long tail is so over the past few weeks...
  • Billy Wolt: take-away: Make sure you are bidding on your brand, broad topic, and specific model keywords :)
  • George Michie: Thanks for the kind words Lance and Bryan. Andy, I feel your pain. I meant to include a section on why site exclusions didn’t...
  • Algernon: Yay for yahoo! Just in time for them to shut it all down and hand the keys to Microsoft. Sorry, as an advertiser who got hammered for...
  • Bryan: Excellent post, George! Now lets cross our fingers that the folks at Microsoft give us the ability to adjust bids by syndication partner...
  • Lance: Brilliant post, George. Here’s hoping things pan out this way and everyone wins.

Blog Stats

  • Posts: 947
  • Words: 450,092
  • Comments: 2,844

Administration