i bought this mac book pro from a friend who i no longer talk to,and i am logged in but cannot update anything without the password. what can i do????
You have two options:
backup to an external HDD anything you want to keep and then do a complete re-install using your installation DVD
1. Start up from a Mac OS X Install CD (one whose version is closest the the version of Mac OS X installed). You should first disable Open Firmware password protection, if it is enabled. Hold the C key as the computer starts.
2. Choose Reset Password from the Installer menu (or Utilities menu in Mac OS X 10.4 Tiger). Tip: If you don't see this menu or menu choice, you're probably not started from the CD yet.
3. Select your Mac OS X hard disk volume.
4. Set the user name of your original administrator account.
Important: Do not select "System Administrator (root)". This is actually a reference to the root user. Do not confuse it with a normal administrator account.
5. Enter a new password.
6. Click Save.
Best of luck
p.s. if you don't have the installation DVD, you will need to download and burn one.
The advice about resetting the password is good, and is the recommended Apple procedure.
I'm not so sure about the advice to download and burn an installation DVD. Unless the OP is a registered Mac developer, where can he legally download a copy of an OS X install DVD?
My bad, I thought with being able to purchase and download Lion via the app store (As I did), that you would be able to download an OS X leopard image from iTunes, but investigating further, it turns out you have to purchase the DVD and wait for it to be shipped to you.
You can do this pretty easily if you can boot into single user mode.
Command + S on boot
Once in single user mode :
/sbin/mount -uw /
Now this will take you into the intro movie screen like the first day you booted your computer. Don't freak out, all you have done is removed the little tag that told your computer you finished setup you have not deleted anything important. So you will go through the entire process as if you're computer were new and set up a New Admin account. With a new admin account you basically can change anything you want .. hope this helps. Also this is a good reason to block shortcut keys on boot if you have a lot of people around your computer unattended.
Hope this helps.
CAUTION- BE careful in terminal. It is not a place to fool around if you do not know what you are doing.
From Mubasher Ali
This method dosent require any burning or cd stuff....
Reset password using Lion Recovery
If you bought a brand new Mac with Lion pre-installed, the hard drive includes with a recovery partition that gives you access to a bunch of different tools. Here’s how to take advantage of this utility to reset your Mac’s password:
Shut down your Mac and turn it back on while holding down the Command and R keys at the same time until you see the Lion Recovery screen.
From the menu bar at the top, select Utilities > Terminal.
In the Terminal window type resetpassword and press Enter.
Use the Reset Password utility to select your hard drive, choose your user account, and enter a new password.
Reset Lion password with Single User mode
Anyone running Mac OS X Lion can take advantage of this method:
Shut down your Mac and turn it back on while holding down the Command and S keys at the same time until your see a black screen with white text. This is known as Single User mode.
You can skip this step, but it’s recommended that you don’t because it will check the consistency of your hard drive. At the prompt, type fsck -fy and press Enter.
Once the disk check is complete and the prompt returns, type mount -uw / and press Enter.
Type launchctl load /System/Library/LaunchDaemons/com.apple.opendirectoryd.plist and press Enter.
Type ls /Users and press Enter. All of the usernames on the computer will be listed, which is helpful if you don’t know or remember what these are.
Type dscl . passwd /Users/username password while replacing username with one of the users displayed in the previous step and replacing password with the new password of your choice. Press Enter. You will likely get an error message about a file or directory not being found – it’s safe to ignore this.
Type reboot and press Enter.