encfs uses FUSE to mount an encrypted directory (a hidden ".directory" by convention) onto another directory specified by the user.
I want to share the encrypted ".directory" via NFS where it will be decrypted on the client (on demand).
When I try doing that the mount command succeeds and no errors are reported (even with "-vvv" parameter). However, the mount on the client is always empty. Why? How do I resolve this?
My plan is that the client will not have to keep the decrypted directory mounted at all times, thus increasing security (I hope).
The other way of sharing it, where it is decrypted on the NFS server means it will have to stay decrypted at all times (afaik).
UPDATE: I want to clarify that I am not mounting the decrypted directory on the NFS server and then trying to share that. I am trying to share the raw encrypted directory.
NFS server (192.168.1.1 fileserver)
/home/.shared /export/home/.shared none bind 0 0
NFS client (192.168.1.10)
I haved tried two approaches:
fileserver:/export/home/.shared /home/.shared nfs4 noauto,x-systemd.automount,x-systemd.device-timeout=10,timeo=14,rw,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,intr,timeo=600,retrans=2,sec=sys,clientaddr=192.168.1.10,local_lock=none,addr=192.168.1.1 0 0
I have also tried:
fileserver:/export/home/.shared /home/.shared nfs4 noauto,_netdev,relatime,vers=4.0,rsize=1048576,wsize=1048576,namlen=255,intr 0 0