Hack a Mac: Gain Administrator Access, Fast

This procedure, when done correctly, is harmless to the computer and does not modify accounts of normal users. It consists of starting the computer in Single-User Mode and enabling the root (superuser) account. Unless an owner
 has specifically set a password for the firmware (almost no one does), the process is doable by anyone with access to the computer. The entire process consists of only five commands and may be completed within a few minutes. All commands given in this procedure are to be entered exactly as shown on one line. Although it is a simple process, one should have basic familiarity with command-line operation to complete it successfully.

First, you must start the computer in Single-User Mode, a command-line mode which automatically logs in as the administrator. This function is intended facilitate computer repair. To enter this mode, hold Command [the Apple button] and S keys while booting the computer until a black screen appears. Once you reach a command line, follow the procedure to complete the boot process, enable the root account, and reboot. You only need to remember the last two commands as the system will remind you of the first three from Single-User Mode.

First, check the disk for errors by entering this command:

/sbin/fsck -fy

This is usually a quick process; it will fix any errors it finds. It is not recommended that you skip this step. After it finishes, activate write access to the hard disk by entering:

/sbin/mount -uw /

Now, initiate the main boot process with this command:

sh /etc/rc

This command will start most of the system while remaining in command-line mode. It will generate much text. If it stalls for more than one minute, you may press Control-C to abort it; you should still be able to complete the procedure. After it completes, you will be able to enable the root account by setting its password. Enter:

passwd root

It will prompt you twice for the new password for root. The cursor will not move as you enter the passwords. Now, reboot the computer by entering:

reboot

Related information
 
Comments 1 - 10 of 23 Next >>
Comments
Type in Your Comments Below

Thank you so much. I had lost the password for one of the users but now it's all good.. Really helpful.

Posted on 04/28/2009 at 7:04:37 AM

The sh /etc/rc won't do anything it just says no such file or directory

Posted on 04/08/2009 at 12:04:06 PM

yeah

Posted on 10/23/2008 at 5:10:32 PM

It will prompt you twice for the new password for root. The cursor will not move as you enter the passwords. Now, reboot the computer by entering: reboot Wait, why would you have a cursor in single user mode?

Posted on 09/29/2008 at 3:09:52 AM

how can i erase this acount now? i gave my acc admin rights but now i can´t destroy the root account? can someone help me?

Posted on 09/24/2008 at 8:09:07 AM

Sounds confusing but I'll write it down on my hand and try it in Info-Tech tomorrow. Tyvm

Posted on 09/16/2008 at 4:09:48 PM

How do you protect from this?

Posted on 09/14/2008 at 3:09:59 PM

does this change the admin password permanently? Thanks

Posted on 09/07/2008 at 12:09:08 AM

does this change the admin password permanently? Thanks

Posted on 09/07/2008 at 12:09:07 AM

wats with step 4 i dont get it

Posted on 06/27/2008 at 10:06:48 PM

Comments 1 - 10 of 23 Next >>