macos 钥匙串和 Mac OS Lion 升级问题

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7811655/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-21 08:31:22  来源:igfitidea点击:

Keychain and Mac OS Lion upgrade issue

macosoperating-systemosx-lionkeychain

提问by bparanj

After upgrade from Snow Leopard to Lion, I am getting a pop-up sometimes:

从 Snow Leopard 升级到 Lion 后,我有时会收到一个弹出窗口:

 syncdefaultsd wants to use the "login" keychain

It prompts for keychain password. ps aux does not show any process called syncdefaultsd. Time Machine is turned off. iCloud is on. Which application does that process belong to? How can I get rid of the annoying pop-up?

它提示输入钥匙串密码。ps aux 不显示任何名为 syncdefaultsd 的进程。时间机器已关闭。iCloud 已开启。该进程属于哪个应用程序?我怎样才能摆脱烦人的弹出窗口?

回答by kopischke

syncdefaultsdis a system agent (launchd definition file is /System/Library/LaunchAgents/com.apple.syncdefaultsd.plist) and part of the private SyncedDefaults framework residing in /System/Library/PrivateFrameworks/in Lion version 10.7.2. As a private framework, it is not documented in the Lion SDK, but the fact a private framework of the same name exists in iOS 5makes me surmise it is part of the iCloud synchronization infrastructure.

syncdefaultsd是一个系统代理(launchd 定义文件是/System/Library/LaunchAgents/com.apple.syncdefaultsd.plist),并且是/System/Library/PrivateFrameworks/位于 Lion 10.7.2 版中的私有 SyncedDefaults 框架的一部分。作为私有框架,它没有在 Lion SDK 中记录,但iOS 5 中存在同名私有框架这一事实让我推测它是 iCloud 同步基础设施的一部分。

Your popup is either:

您的弹出窗口是:

  • the request for permission to access an iCloud item stored in your keychain; in that case, the dialog displayed in such situations offers the option to deny access, grant access and permanently grant access – that last option would be the one you need.
  • a request for unlocking the keychain as a whole – that dialog only takes your password. This happens because your keychain is locked. To get rid of the dialog, you need to disable both keychain locking on sleep and locking after idle time in the Keychain Access app.
  • 访问存储在您钥匙串中的 iCloud 项目的权限请求;在这种情况下,在这种情况下显示的对话框提供了拒绝访问、授予访问权限和永久授予访问权限的选项——最后一个选项将是您需要的选项。
  • 解锁整个钥匙串的请求 - 该对话框只需要您的密码。发生这种情况是因为您的钥匙串被锁定。要摆脱该对话框,您需要在 Keychain Access 应用程序中禁用睡眠时的钥匙串锁定和空闲时间后的锁定。