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 uid=xxx,gid=xxx for fstab entries.

How to achieve that?

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.