注意:此操作可以在任何Mac上获取管理员权限,请勿用于非法用途!

Warning: You can get admin access with this tutorial on any Mac, DO NOT use this tutorial for illegal purposes.

 

如果你想修复一个Mac

If you want to repair a Mac which loses its admin account

  1. Boot into Single User Mode: Start/restart your Mac. As soon as you hear the startup tone, press, and hold ⌘ + S until you see a black screen with white lettering. (If you end up back on the login screen after a flash of the black screen with white lettering, enter your password and it will return to the black screen.)
  2. Check and repair the drive by typing /sbin/fsck -fy then ↩ enter – as directed by the on-screen text.
  3. Mount the drive as read-write by typing /sbin/mount -uw / then ↩ enter.
  4. Remove the Apple Setup Done file by typing rm /var/db/.AppleSetupDone then ↩ enter.
  5. Reboot by typing reboot then ↩ enter.
  6. Complete the setup process, creating a new admin account.

IT部借来的电脑可以用此方法获取管理员权限,从此不受鸟气

如果你只是想在无需现存管理员同意的情况下新建一个管理员

If you just want a new admin account without the approval of the existing admin

  1. Start/restart your Mac, hold ⌘ + S until you see a screen with commands, wait until everything stops, then press enter, if you see the repeating headers(Localhost@something), you’re on the way;
  2. Typing /sbin/mount -uw / then press enter, wait until everything stops(typically 1-3mins);
  3. Typing rm /var/db/.AppleSetupDone then enter;
  4. Typing reboot then press enter.

随后你会进入初始设置页面,此时新建一个管理员账户即可获得电脑的管理员权限