Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我注意到一些应用程序在安装后会打开一个窗口并询问用户密码。它说应用程序需要system.privilege.admin. 我试图弄清楚这到底意味着什么。应用程序本身似乎在用户模式下运行。那它为什么要输入密码呢?有人可以帮忙吗?
system.privilege.admin
大多数 Mac 安装将程序放入 Applications 文件夹。默认情况下,这对用户是不可写的。在引擎盖下,安装程序基本上是在执行 sudo 以便它可以将文件写入应用程序。
此外,许多 mac 应用程序在系统库中都有一个首选项文件。这也需要管理员权限才能写入。
最后,应用程序可以注册它可以打开的文件类型。例如 pdf 文件可以通过 Preview 或 Acrobat Reader 或 Acrobat distiller 打开。系统需要跟踪哪些应用程序可以做什么。