eggplant72 wrote:
I bought it from a second hand Mac dealer without any disks. It came with Mountain Lion installed and the dealer made me log in and buy an online license for that in the shop before taking it away.
Obviously I can't restore it to Mountain Lion, so what am I supposed to do? Sell it with a blank hard drive and tell the buyer he will have to download/install Mavericks himself?
Honestly, yes, that is exactly what you are supposed to do - sell the hardware with a blank formatted HD. It is then up to the seller to get their own copy of the Mavericks installer, with their own AppleID and set things up themselves. Same thing applies to other Mac App Store software like the current iWorks programs and such.
Your license to use any of the Apple Mac App store software is tied to you and your AppleID only.
In reality, that second hand shop is ultimately at fault here, as they should have sold the machine with only the OS it shipped with installed, and then let you update or upgrade however you wished (and after you had time to make a backup of the existing, default system the machine can licensed with). That way, you would have had a copy of the original installed OS X to put back on it to re-sell it yourself.
Even if you sold it with a copy of OS X Mavericks tied to your AppleID, that would only create headaches for the next owner. If they ever needed to restore, they'd need your AppleID and password. So ultimately, they need to get their own license anyway.