我正在尝试在ubuntu16.04中挂载nas驱动器,然后从它创建一个encfs挂载,用于将加密的内容上传到云端。
/mnt/nas #decrypted (NFS mount from the NAS)
/mnt/.nas #encrypted (encrypted on local file system using decrypted data from NAS mount)第一次安装工作良好:
sudo mount 192.168.2.10:/volume1/filestorage /mnt/nas/我能在那个坐骑上看到里面的东西。然后我尝试用encfs加密它:
echo 'MYPASSWORD' | ENCFS6_CONFIG='/home/user/encfs.xml' encfs -o allow_other -S /mnt/.nas/ /mnt/nas/它返回这个错误:
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
fuse failed. Common problems:
- fuse kernel module not installed (modprobe fuse)
- invalid options -- see usage message所以我修改我的命令:
echo 'MYPASSWORD' | ENCFS6_CONFIG='/home/user/encfs.xml' encfs -o allow_other,nonempty -S /mnt/.nas/ /mnt/nas/这一次没有错误,但是当我查看/mnt/.nas或/mnt/nas时,它们都显示为空。当我像这样开车时
sudo umount /mnt/nas//mnt/nas/路径再次显示所有NAS文件。当我第二次运行确切的命令时,它使用NAS移除挂载。
我还会添加,我尝试安装优先,然后安装NAS驱动器。在这种情况下,我可以在/mnt/nas中看到文件,但/mnt/.nas是空的。
这是NAS上/etc/exports的内容。这是通过Synology设置的。
/volume1/filestorage *(rw,async,no_wdelay,no_root_squash,insecure_locks,sec=sys,anonuid=1025,anongid=100)我已经让encfs在这个服务器上很好地工作了一段时间,使用我生成的.encfs6.xml文件已经有几个月了。唯一的区别是我购买了NAS,并开始将所有文件移到那里进行本地备份。因此,与在本地加密和解密目录上运行encfs不同,解密目录现在是NAS中的NFS挂载,加密的文件位于ubuntu上的本地路径中。
我如何挂载NAS解密的文件,然后使用encfs加密它们,以便从Ubuntu服务器上传到云端?
使用sshfs和encfs编辑相同的进程,结果相同。
发布于 2018-04-04 19:25:18
你需要--倒转,参见https://github.com/vgough/encfs/blob/master/encfs/encfs.pod:
使用--反向,它将作为源明文数据,并按需生成加密数据.
https://askubuntu.com/questions/858058
复制相似问题