如何重新获得 MacOS 中管理员设置的访问权限?(sudo 命令有效)

如何重新获得 MacOS 中管理员设置的访问权限?(sudo 命令有效)

我最近更改了密码,升级到 Big Sur 并启用了 MDM,但在 UI 中访问管理员设置时遇到了问题。

我仍然有 sudo 访问权限在命令行上。

但是我无法在管理用户界面中解锁。<- 问题。

我很傻,没有创建第二个管理员用户。

有没有办法从 CLI 更新管理员访问权限?

有没有更好的 stackextange 来实现这个功能?

答案1

事实证明,这是对搭载英特尔处理器的 MacBook 上的 Big Sur 的升级。

我必须重置我的 SMC。请注意,我执行了以下步骤 3 次,才正确按下所有按钮。

https://support.apple.com/en-us/HT201295

按要求复制粘贴的步骤:

搭载 T2 芯片的笔记本电脑

在重置 SMC 之前,请尝试以下步骤:

Shut down your Mac.
Press and hold the power button for 10 seconds, then release the button.
Wait a few seconds, then press the power button to turn on your Mac.

如果问题仍然存在,请按照以下步骤重置 SMC:

Shut down your Mac.
On your built-in keyboard, press and hold all of the following keys. Your Mac might turn on.
    Control  on the left side of your keyboard
    Option (Alt)  on the left side of your keyboard
    Shift  on the right side of your keyboard
Keep holding all three keys for 7 seconds, then press and hold the power button as well. If your Mac is on, it will turn off as you hold the keys.
Keep holding all four keys for another 7 seconds, then release them.
Wait a few seconds, then press the power button to turn on your Mac.

配备 T2 芯片的台式电脑

Shut down your Mac, then unplug the power cord.
Wait 15 seconds, then plug the power cord back in.
Wait 5 seconds, then press the power button to turn on your Mac.

在其他计算机上重置 SMC

如果您的 Mac 没有 Apple T2 安全芯片,请按照以下步骤操作。如果您需要帮助,请联系 Apple 支持。带有不可拆卸电池的笔记本电脑

这适用于 2009 年中至 2017 年推出的 MacBook Pro 机型、2017 年或更早推出的 MacBook Air 机型以及除 MacBook(13 英寸,2009 年中)之外的所有 MacBook 机型。

Shut down your Mac.
On your built-in keyboard, press and hold all of these keys:
    Shift  on the left side of your keyboard
    Control  on the left side of your keyboard
    Option (Alt)  on the left side of your keyboard
While holding all three keys, press and hold the power button as well.
Notebook keyboard with all 4 keys pressed
Keep holding all four keys for 10 seconds.
Release all keys, then press the power button to turn on your Mac.

相关内容