【问题标题】:Unable to run any command on mac terminal无法在 mac 终端上运行任何命令
【发布时间】:2015-02-26 11:38:35
【问题描述】:

我错误地将我的mac上的/usr模式从终端更改为644,所以现在我的进程无法访问。

我无法使用 sudo,也找不到任何以 root 用户身份登录的方法,因此我可以将 /usr 的模式改回 777。

请给我任何建议

这是我在终端打开新标签时显示的错误。

could not create a new process and open a pseudo-tty

【问题讨论】:

  • 777 无论如何都不是正确的烫发。我建议从DiskUtil 运行Fix File Permissions。你也可以在right site 上问这个问题。
  • 伟大的兄弟你拯救了我的一天:)。让我发布完整的答案,以便其他人可以从中获得帮助。

标签: macos unix sudo


【解决方案1】:

我听从了 trojanfoe 的建议。 以下是解决此问题的步骤:

On system boot press Command+R it will take you to OS X Recovery
Click on Repair Disk Utility
Select your disk where os is installed
Click on repair file permissions

它会修复你的权限,现在你只需要重启你的 mac。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-10-01
    • 2017-04-08
    • 2015-12-26
    • 2020-08-24
    • 1970-01-01
    • 2016-06-10
    • 2016-08-24
    相关资源
    最近更新 更多