I have a Luks container on a USB device that I mount with following command:
udisksctl loop-setup -f container_file
Then Ubuntu automatically detects the new device and tries to mount it (via
gvfs-mount?), a popup comes up asking for my password. That is exactly what I want to have and it works well.
Now the problem is, that the contents have the original owner and group, but I want to access and write files from any computer and any login.
I could run
sudo chown -R $USER: /path/to/mountpoint, but I need
sudo for it, which I might not have. Also I think it's not a very elegant solution. I rather want something similar to
How to achieve that?