Before you access the file and copy it to NotePad, let's make sure that program is set up for it. This is important.

NotePad, by default wraps text. You don't want this when copying this script code to it. Word Wrap has been known to put unwanted spaces in code and this could cause issues when you upload the finished text file to your root directory and try to use it..

Do this first...

1. Open NotePad. Click on "Format."



2. Uncheck "Word Wrap"



Now, copy the file to your clipboard.

The file is located at the bottom of the page here...

http://codex.wordpress.org/User:MichaelH/Orphaned_Plugins_needing_Adoption/Emergency

Past it into NotePad and name it...

emergency.php

Upload this file to the root directory as previously instructed.

Open a browser window and put your domain with the filename in the address bar. It should look like this:

http://yoursite.com/emergency.php

Open it and this is what you are going to get...



This is pretty self-explanatory. Follow the instructions given and BINGO! You should now be able to get into your Admin area!

Once you are able to get in okay, one last and VERY important item...

Be sure to remove the script from the root directory when you are done! Note that anyone can use this script to change your password, so DO remember to delete it when you are finished using it.

I hope this tutorial helped. I've used this method a couple times. If password retrieval using your browser's stored passwords area doesn't do the job, this is the thing to do, even if it is a last resort.

Daniel



Join the Discussion
Write something…
Recent messages
healthywendy Premium
Thank you for the detailed instructions Daniel. I will take extra care not to lose my password!!
Reply
Labman Premium Plus
Great Training, I hope you never need to use it. I use a program called Last Pass. It is free and stores all of your passwords in a protected file off of your computer. You do need to remember one password to get into the program but one is much better than hundreds and if you need to access your stuff from another computer, all of your passwords can be accessed from there.
Reply
If something ever happens to Last Pass and it malfunctions in some way what do you do about getting access to all your sites? It may be a great program but I have been leery of it.

I am leery of using clouds because this, in my mind means less control over what can happen. If I use them, I also have stuff in the conventional ways too. I was with the person I'm working with today and we discussed cloud storage (data.) If I used cloud storage, I would also use external hard drives and discs.
Reply
CromTheOne Premium
As a 'newbee' I am sure this will be very helpful. Thank you :-)
Reply
Very welcome. It's helped me get into back office of two WP sites with lost passwords.
Reply
reefswimmer Premium
Ah, the ol' ounce of prevention thing.

I do like telling Chrome to save my passwords, so if I have to I can use its retrieval list in the chrome menu . I realize there's a security problem inherent in doing this. (If I can access this menu, so can anyone who gets access to my computer. Far too easy.) So I am careful about what sites I let Chrome save passwords for.

Second, I do the send-myself-an-email trick for each user/password combo. I collect them in an oh-so-cleverly-named file. And I think I am so very clever when I just say in the email, follow algorithm. i hope my attempts at being sufficiently paranoid are never tested.

Thirdly, the algorithm itself. I never write it down anywhere, It's my own and I better never forget what it is. It does let me generate a password that is unique to each site. And i guess I could recreate it by looking at some of the passwords I have asked Chrome to save.

Fourth, when a site gives me an impossible-to-remember password, I go in and change it to my algorithm.

Last but not least, banking sites are an exception to all above rules.

And oh dear, just writing this makes me feel paranoid !
Reply
excaliba Premium
I had so many passwords to so many systems accumulated over the years that it was driving me nuts. The Mac / Chrome save password feature was my early saviour! And then I went and got myself an iPad and iPHone ... what was I do do? LOL

I ended up using 1Password - was able to beef -up my security by resetting my passwords to unimaginably complex ones - and synchronise them between devices. Oh, and still use Chrome as my backup!

Not suggesting mind you that any of you go down that path - I now have put my total faith in the app - so that is perhaps a risk in itself!
Reply
Tom Robarge Premium
Nice post. I will have to remember to save email to this lesson. so if I have to I can find the resource again
Reply
Thanks Tom. If it wasn't for the last option I would have kissed my site good-bye.
Reply
Top