ecryptfs加密

Posted Ven_J

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ecryptfs加密相关的知识,希望对你有一定的参考价值。

  1. 首先安装 ecryptfs-utils。(sudo apt-get install ecryptfs-utils)

  2. 载入ecryptfs模块。(sudo modprobe ecryptfs)

  3. 挂载ecryptfs文件系统

    • sudo mount -t ecryptfs real-path ecryptfs-mount-path

    • 建议real-path和ecryptfs-mount-path是不一致的

    • 然后会出来界面让你输入加密密码,密码一定要记住

    • 按照提示来完成ecryptfs的构建

  4. 关闭解密状态

    sudo umount -t ecryptfs ecryptfs-mount-path

  5. 开启解密状态

    sudo mount -t ecryptfs  real-path ecryptfs-mount-path

以上是关于ecryptfs加密的主要内容,如果未能解决你的问题,请参考以下文章