Skip to main content
June 6, 2023
Question

1password cli error on sudo in macos

  • June 6, 2023
  • 1 reply
  • 374 views

when run sudo -s in macos, cannot use 1password cli and reports error: [ERROR] 2023/06/06 14:06:07 Can't continue. We can't safely access "/Users/user/.config/op" because it's not owned by the current user. Change the owner or logged in user and try again.


1Password Version: 8.10.7
Extension Version: 2.12.0
OS Version: macos 13.4
Browser:_ Edge

1 reply

June 28, 2023

Hi @yeliex,

A possible workaround you could try is to duplicate the op config directory and change the owner of the duplicate directory to root, then pass in the path of the new root-owned directory using the --config flag or the OP_CONFIG_DIR environment variable. We will make a note of your request and add to our internal ticketing system and let you know if we have any future updates.

Thank you!
Amanda