Sample Header Ad - 728x90

share the encfs encrypted ".directory" via NFS

1 vote
1 answer
2614 views
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) /etc/fstab: /home/.shared /export/home/.shared none bind 0 0 /etc/exports: /export/home/.shared 192.168.1.10(fsid=2,rw,no_root_squash,sync,no_subtree_check,nohide) **NFS client** (192.168.1.10) I haved tried two approaches: first try: 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
Asked by MountainX (18898 rep)
Jul 24, 2016, 07:32 PM
Last activity: Jul 25, 2016, 12:13 AM