Skip to content

Instantly share code, notes, and snippets.

@kamontat
Created August 30, 2018 17:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamontat/1c72976f0625c120fa4f898e6ad9d761 to your computer and use it in GitHub Desktop.
Save kamontat/1c72976f0625c120fa4f898e6ad9d761 to your computer and use it in GitHub Desktop.
Restart Setup, To recreate Admin user in MacOS
# Shutdown your computer (Mac)
# Press `Command+S` and turn computer on.
# Press, until computer open black screen
## Type below to the screen
# Mount root dir
/sbin/mount -uw /
# remove setup entry
rm /var/db/.applesetupdone
# restart computer
reboot
# ปิดคอมตัวเอง (Mac)
# กด `Command+S` แล้วเปิดเครื่อง
# กดจนกว่า จะมีจอดำขึ้น
## พิมพ์ไปดังนี้. ทีละบรรทัด
# โหลด โฟลเดอร์ root
/sbin/mount -uw /
# ลบการตั้งค่าเดิม
rm /var/db/.applesetupdone
# ปิดเครื่อง-เปิดใหม่อัตโนมัติ
reboot
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment