如何在不擦除操作系统的情况下获得 Mac OS X 系统的 root 访问权限?

发布于 2024-07-06 22:58:44 字数 159 浏览 5 评论 0原文

我父亲最近去世了,我继承了他的 Mac。 我很想把它用在我自己的生活中,但我不想把它的大脑抹掉,这样我就可以重新配置它以在我的网络中使用,等等。他的旧文件对我来说历史上很重要——我相信你可以理解我想要保留它们的愿望。

我可以登录,因为在他去世之前我在机器上有一个帐户,但仅此而已。

My father died recently and I've inherited his Mac. I'd love to put it to use in my own life, but I don't want to wipe its brains out just so I can reconfigure it to use in my network, etc. His old files are historically important to me—I trust you can understand my desire to keep them.

I can log in as I had an account on the machine before he passed, but that's about it.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(8

怪我闹别瞎闹 2024-07-13 22:58:45

FWIW

假设您的帐户具有管理员权限,启动机器并输入您的密码; 然后使用 Finder 导航到他的用户文件夹 (/Users/name-he-used-on-the-mac); 他的子文件夹将有一个红色的小锁定符号。

您可以将它们复制/粘贴到查找器中(系统将提示您输入密码),也

可以打开终端并同上:

      sudo ditto <his files> <directory where you want the copies>

此时系统将提示您输入您的密码。

FWIW

assuming your account has admin privileges, boot the machine and enter your password; then use the Finder to navigate to his user folder (/Users/name-he-used-on-the-mac); his subfolders will have a little red locked symbol.

you can either copy/paste them in the finder (you will be prompted for your password), or

you can open terminal and ditto them:

      sudo ditto <his files> <directory where you want the copies>

at which time you will be prompted for your password.

丢了幸福的猪 2024-07-13 22:58:44

诚挚慰问。

试试这个:Mac OS X - 重置忘记的帐户密码

链接显示从 Mac OS X 安装 DVD 启动并使用其重置密码功能重置管理员帐户密码的演练。

这里有更多信息:Mac OS X:更改或重置帐户密码

Sincere condolences.

Try this: Mac OS X - Resetting a Forgotten Account Password

The link shows a walk-through of starting up from the Mac OS X installation DVD and using its Reset Password functionality to reset the administrator account's password.

There's further information here: Mac OS X: Changing or resetting an account password

活雷疯 2024-07-13 22:58:44

如果您不想对 Mac 进行任何更改,可以使用一个鲜为人知的功能,称为目标磁盘模式 可能会让事情变得更容易。

If you don't want to make any changes to the mac, a little known feature called Target Disk Mode might make it easier.

饮惑 2024-07-13 22:58:44

如果尚未设置打开固件密码,您可以尝试在启动时按 apple-s 进入单用户模式。 然后你应该能够做任何你想做的事情,因为你将成为root。

请参阅此 Apple 支持文档

我建议使用此功能使您父亲的所有文件可由您的普通用户帐户读取,然后备份他的所有文件并重新安装。

If open firmware password has not been set, you can try entering single user mode by pressing apple-s during boot. Then you should be able to do anything you want, since you will be root.

See this apple support document.

I recommend using this capability to make all your father's files readable by your normal user account, then backup all his files and do a fresh reinstall.

╰沐子 2024-07-13 22:58:44

如果您的帐户是管理员帐户。 您可以打开 Terminal.app 并输入 系统

sudo passwd root

将提示您输入新的 root 密码。

如果您没有管理员访问权限,可以使用 osx 安装光盘重置 root 密码。 说明位于此处

编辑:节点链接 更好。

If your account is an administrator account. You can open up Terminal.app and type

sudo passwd root

You will be prompted to enter a new root password.

If you don't have administrator access, you can reset the root password using your osx installation cd. Instructions are here.

EDIT: Node's link is better.

顾铮苏瑾 2024-07-13 22:58:44

使用 BSD 或 Linux CD 启动计算机并挂载文件系统。

Boot the computer with a BSD or Linux CD and mount the filesystem.

断桥再见 2024-07-13 22:58:44

如果机器运行的是 leopard 或更高版本,您实际上可以强制
任何 Mac 只需删除一个文件即可创建新的管理员帐户。

  • 只需启动到单用户模式,(启动时按住 command + s

  • 使用 mount -uw /

    挂载文件系统

  • 然后输入 rm /var/db/.AppleSetupDone

  • 重新启动计算机。

    这是通过删除检查 .AppleSetupDone 来实现的,这样它就可以欺骗
    mac 在启动时重播设置助手。


否则,您可以通过再次启动到单用户模式来执行与旧版 Mac 非常相似的操作,只不过这次输入以下内容(逐行)

mount -uw /
cd /private/var/db/netinfo
mv local.nidb local.old
rm ../.AppleSetupDone
exit 

If the machine is running leopard or higher you can actually force
any mac to create a new administrator account by simply deleting one file.

  • Simply boot into single user mode, (hold command + s when booting up)

  • once in single user mode, mount the file system using mount -uw /

  • then input rm /var/db/.AppleSetupDone

  • restart the machine.

    This works by removing the check .AppleSetupDone so it tricks the
    mac into replaying the setup assistant on boot.


Else, you can do something very similar to older macs by again booting up into single user mode, except this time inputting the following (line by line)

mount -uw /
cd /private/var/db/netinfo
mv local.nidb local.old
rm ../.AppleSetupDone
exit 
叹倦 2024-07-13 22:58:44

如果您可以访问有问题的文件,那么要做的第一件事就是备份它们......

If you can access the files in question, then the first thing to do would be to back them up...

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文