How to reset a forgotten OS X password

The linked article will both show you how to reset your Mac’s password if you’ve forgotten it and, at the same time, demonstrate how easy it is for someone else to do this to your Mac if they get their hands on it.

As pointed out by reader Marek Bell, this technique will not work if you have File Vault enabled, which you should.

Better reading is Apple’s official support page that walks you through more traditional approaches to solving this problem.