Currently Being ModeratedJan 20, 2013 5:25 PM (in response to gegabe)
First, an important question:
Did your iMac come with Lion pre-installed? Or did you upgrade it at the app store?
(This is important because the licensing requirements are different).
Currently Being ModeratedJan 20, 2013 5:28 PM (in response to babowa)
It came with Lion pre-installed. I only got the computer in September 2012 so it isn't even half a year old yet.
Currently Being ModeratedJan 20, 2013 5:43 PM (in response to gegabe)
Okay, if it was pre-installed, then you are allowed to make a onetime transfer of the Lion license, so....
Make sure you back up the files you want to keep.
Use the internet recovery method to wipe the drive and reinstall the OS.
You will first get this window:
Use Disk Utility to wipe the drive since you are giving it to someone else. After it is wiped, choose reinstall Mac OS X. The aervers will identify your machine and should install the exact same version of Lion that it came with. Using Internet Recovery will tie the OS to the machine, so the new owner should be able to reinstall if necessary.