简体   繁体   English

尝试创建钥匙串“ UNIX [无此文件或目录]时出错

[英]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.

相关问题 VSCode“将登录信息写入钥匙串失败,错误为'UNIX[没有这样的文件或目录]'。” - VSCode "Writing login information to the keychain failed with error 'UNIX[No such file or directory]'." 错误:没有这样的文件或目录试图从终端创建 jar 文件 - ERROR: no such file or directory trying to create jar file from terminal Python在Mac上尝试打印文件列表目录时没有此类文件或目录错误 - Python no such file or directory error trying to print a file list directory on Mac Docker错误拨号unix /var/run/docker.sock:没有这样的文件或目录 - Docker error dial unix /var/run/docker.sock: no such file or directory docker:来自守护程序的错误响应:拨打 unix docker.raw.sock:连接:没有这样的文件或目录。 苹果系统 - docker: Error response from daemon: dial unix docker.raw.sock: connect: no such file or directory. MacOS UNIX,“我没有看到这样的文件或目录” - UNIX “No such file or directory” though I see it 查找 unix 命令给出“不是目录”错误消息 - Find unix command gives “Not a directory” error message Unix查找命令忽略丢失的文件或目录 - Unix Find Command Ignoring Missing File or Directory 创建 virtualenv 没有这样的文件或目录 - Create virtualenv no such file or directory 在OS X中创建到目录的硬链接的Unix命令是什么? - What is the Unix command to create a hardlink to a directory in OS X?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM