且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何设置我的应用程序总是作为根OSX运行

更新时间:2023-10-22 21:37:52

不要以root身份运行桌面应用程序。 Mac OS X框架不打算以这种方式使用,会导致不良的行为(例如,用户的库中的root所拥有的文件/文件夹;进程不响应强制退出;潜在的安全漏洞)。

Do not run desktop applications as root. The Mac OS X frameworks are not intended to be used this way, and undesirable behavior will result (e.g, files/folders owned by root in the user's Library; process not responsive to "force quit"; potential security vulnerabilities).

使用授权服务,以root身份运行特定的有限权限操作。

Use Authorization Services to run specific, limited privileged operations as root.