gocryptfs icon indicating copy to clipboard operation
gocryptfs copied to clipboard

force_owner not working in reverse mode

Open m4rc0d1 opened this issue 2 years ago • 0 comments

For a rsync backup, I need to have the reverse-mounted encrypted directory owned by a specific non-privileged user in order to limit access of the backup user.

It seems that adding the -force_owner option while reverse-mounting the plain directory does not have an effect, i.e. all the files in the encrypted dir have the same ownership of the plain files. Is this the expected behavior? The documentation does not specify if the two options are compatible.

My current workaround is to remount the encrypted dir on another mountpoint using bindfs, but I would like to avoid stacking filesystems one over the other if possible.

m4rc0d1 avatar Dec 01 '23 10:12 m4rc0d1