I'm getting "You don’t have permission to save the file X in the folder Y, Operation not permitted" error when trying to save or sync

This is usually caused by having or using more than one version of Strongbox installed on your Mac. For example, you may have been using the Freemium version of Strongbox and then upgraded to the Pro version. This is an easy thing to do but it will cause problems accessing your databases.

Another example is if you install Strongbox Zero as well as Pro. You'll see an error like:

16:04:10.159 [Error] - Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “my-database.kdbx” in the folder “my-databases”." UserInfo={NSFilePath=/Users/myname/My Documents/my-databases/my-database.kdbx, NSUnderlyingError=0x6000005381b0 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}

To resolve this issue, you will need to first choose which version of Strongbox you want to run, and remove all others from your system. Then you'll need to re-add your database. Follow the instructions below for best results.

Remove extra copies or versions of Strongbox
  1. Before continuing, make sure you know where all of your existing databases are stored, and also that you 100% definitely know the master password (and any other master credentials).
  2. Optional: You can at this point decide if you'd like to do a full factory reset of Strongbox. This may help if you are having difficulties in other ways with Strongbox. You can find the Factory Reset button under Settings > Advanced > Factory Reset (Big Yellow Button)
  3. Go to your Applications folder and check if there is a sub folder called "Strongbox". This is where extra or different versions of Strongbox are saved if you install more than one. We would recommend removing not just that folder but also the Strongbox app itself directly inside the Applications folder. You can do this by moving those to the Bin or choosing Delete.
  4. Now, starting fresh, you can go to the App Store and install only the version of Strongbox that you want to use permanently, be it Strongbox Pro or Zero, or just Free.
Re-Add Your Database

We recommend that you remove any problematic databases from Strongbox and re-add them. To remove them, go to the Databases Manager window and choose "Remove" on the problematic database. Next, click the Add Database button and navigate to your database. Follow the on-screen instructions to get your database freshly configured.

You should now have no further problems.

Feb 12, 2024