[英]Error trying to create a keychain "UNIX[No such file or directory]
I am trying to automate a process and i need to create a keychain. 我正在尝试使流程自动化,并且需要创建钥匙串。 This process runs as a celery task under the _www user (OS Yosemite).
此过程在_www用户(OS Yosemite)下作为芹菜任务运行。
I get the following error: 我收到以下错误:
security create-keychain -p mypassword keychain_test.keychain
security: SecKeychainCreate keychain_test.keychain: UNIX[No such file or directory]
I've been looking at what could cause this specific error message but no luck so far. 我一直在研究什么可能导致此特定的错误消息,但到目前为止还没有运气。 Any pointers are appreciated.
任何指针表示赞赏。
Keychain data is usually stored in a Library/Keychains
directory under a user's home directory. 钥匙串数据通常存储在用户主目录下的
Library/Keychains
目录中。 The _www
user on Mac OS X does not have a "real" home directory with a writable Library
subdirectory, so it has nowhere to store a keychain. Mac OS X上的
_www
用户没有带有可写Library
子目录的“真实”主目录,因此它无处存储钥匙串。
You will need to run this task as another user. 您将需要以其他用户身份运行此任务。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.