无法删除钥匙串

我的钥匙串中有一个Sophos钥匙串,这是一个杀软安装的,卸载掉这个杀软后,钥匙串中有残留,为只读文件,然后怎么都删不掉,重新安装上这个杀软并执行删除时,提示修 改需要密码,输入密码居然无效,有没有什么办法能强行删除,谢谢!

用户上传的文件

发布日期 2015年2月25日 上午3:12

回复
回复量: 3

2017年6月6日 上午5:55 回应 LJ0422

从国外论坛找到的答案,已经成功,主要是找到/Library/Preferences/com.apple.security-common.plist

删除其中的sophos部分,它会提示你只能另存,选择另存,然后更改扩展名为.plist,把它拖至/Library/Preferences/

目录,选择覆盖。即可

原文如下——————————

To fix this you have to manually edit the file

/Library/Preferences/com.apple.security-common.plist
, as root, and delete the corresponding hardcoded
<dict>...Sophos...</dict>
entry in there.

Great care must be taken because you can totally screw up 👎 your system(-keychain) if you leave any errors inside this .plist file. The section that needs to be deleted looks as follows:

<dict> <key>DbName</key> <string>/Library/Sophos Anti-Virus/Sophos.keychain</string> <key>GUID</key> <string>{some UUID string here}</string> <key>SubserviceType</key> <integer>6</integer> </dict>

Upon save, there should no longer be any "Sophos" entry in Keychain Access or as output of

security list-keychains
.

I used

vim
and deleted the offending lines as (
sudo vim /Library/Preferences/com.apple.security-common.plist
) but you may use any text or plist editor you like - I frankly don't know with one is the most accessible (recommendations welcome).

这个主题已被系统或社区团队关闭。 你可以为你认为有帮助的任何帖子投票,也可以在社区中搜索其他答案。

无法删除钥匙串

欢迎来到 Apple 支持社区
Apple 客户在其产品方面互相帮助的论坛。使用您的 Apple 帐户开始畅游其中吧!!