【发布时间】:2016-05-11 10:43:14
【问题描述】:
我突然遇到一个问题,在 Sublime Text 3 中提示我保存密码。我在本地使用 Mamp Pro。我在保存时收到的提示信息是:
Sublime Text.app wants to make changes. Type your password to allow this.
如果我不输入密码,我会得到这个:
Unable to save ~/Sites/mywebsite/templates/fl_sidebar/index.php
Error: administrator_copy_file(/tmp/.sublba2.tmp,
/Users/myusername/Sites/mywebsite/templates/fl_sidebar/index.php)
failed: AuthorizationExecuteWithPrivileges failed: ffff159a
在使用 Sublime Text 时,我从来没有遇到过这个错误,所以我不知道如何解决它。我查看了这个 (How to give Sublime Text 3 write permission to files in web server's DocumentRoot?) 并尝试了非命令行选项,但它没有改变任何东西。
我停止运行 MAMP,通过 Get Info 检查了该文件夹的所有权限,这表明我具有读写权限。我重新启动了 Mac 并再次在 sublime 中打开了我的本地开发,进行了更改并立即再次要求输入密码。
我使用的是 OSX El Capitan 版本 10.11.2
【问题讨论】:
标签: macos sublimetext3 osx-elcapitan