Sync KeepassXC across profiles

I am using KeepassXC as one user. I created another user profile/user on the same machine so I can separate my personal files from my work files. Can anyone teach how to sync KeepassXC between the two? Or at least point me in the right direction?

Add your second user to the group of first one and check that the group has write and read permissions to the database file. Then just open database file on second user and that’s it :slight_smile:

I did as you suggested, but when I browse to the folder with keepassxc, no mdb file is visible. I made sure the group has read and write permissions though, so I am puzzled why the database is not showing when I am logged in as the other user. Note that I can still open the file as the original user.

Firstly it should be kdbx file. Secondly - Wich path are you going for database? It should be /home/name of the first user/whatever folder you store your base in
I just checked and everything works.
P.S. Maybe it is batter to create new group for those databases(keepassx for example), add both users to it and change group of file to it if you separating users for security reasons.

I don't know why it's not woking on my end. I put the folder in home directory to separate access. And I do have a group with both users assigned to it named "keepassusers". The owner of the directory and files is still the first user. Here, take a look...

Super strange. Do you see it in caja from second user?
Try to go to users and groups -> permitions and put the same permitions first user have.
Do you have user dirs encrypted?

That screenshot is from the second user’s desktop. Works fine on the first user. They both have identical permissions in “Users and groups” and the directories are not encrypted.

Try to open from caja file manager. Also try to choose “all files” in Files of type field(keepassxc).

Permission denied when opening with Caja.

Selecting "all files" shows nothing either.

What is the version of keepassxc you are using?

KeepassXC 2.3.4 installed via snap.

I may be because of snap. Try the apt version.

checkmate:

Okay, I replaced snap version with apt version and still does not work. I discovered though that file access in Caja shows an em dash "—" so I tried selecting "Read and write" but it keeps reverting to the dash, even when running Caja as superuser. Perhaps this is where the problem lies?

@brokoli: I finally got it to work! I was changing file access in Caja on the directory level instead of the file level. So I went into the folder, right clicked the database and changed file access to “Read and write” and I can now open the database using the other user profile!

Thanks for being patient!

:grinning:

1 Like

This is a known bug, that caja does not change permissions recursively(if you want to spread permissions to the files and folders inside you need to use terminal or change each file separately)

I see. Perhaps rsync would be a better solution?

I do not know anything about rsync.