---
title: "找回Mac OS X的root密码"
author: "alexcheng"
date: "2010-07-02T13:57:16Z"
tags: []
categories: ["操作系统"]
slug: "mac-os-x-root"
draft: false
lastmod: "2010-07-02T13:57:16Z"
id: 704305
url: "https://woodstudio.iteye.com/blog/704305"
---

如果Mac OS X的root密码遗忘的话，可以通过下面的方式重新设置一个新的密码。该重设方式来源自[这篇文章](http://www.macosxhints.com/article.php?story=20001217230925152)，我简单翻译了一下，并且测试可行。  
   
步骤如下：  
1）重新启动Mac OS X，在电脑重新启动的过程中，一直按着Command键和S键，直到进入文本界面。  
2）输入下面两条命令：  
/sbin/mount -uw /  
/sbin/SystemStarter  
3）上面两条命令执行结束之后，运行passwd root，会提示你重新输入新的密码。  
4）输入reboot重启电脑，完成修改。