当前位置: 首页 > 工具软件 > eCryptfs > 使用案例 >

Ubuntu下安装并使用eCryptfs工具

翁翰
2023-12-01

1、使用命令 sudo apt-get install ecryptfs-utils安装ecryptfs


2、在终端输入  ecryptfs-unwrap-passphrase  [file] , 如果不输入这条命令,挂载加密文件夹最后会出错

报错:Error mounting eCryptfs: [-2] No such file or directory

  现在还不能清晰的解释这条命令,似乎是保存密钥的地方。


我用在虚拟机里用Ubuntu12.04测试了下,具体命令如下:

3、先建立两个文件夹mkdir /tmp/company和 mkdir /tmp/company_secret,后者用于存放加密前者中存放的文件。

即前者是解密文件目录,后者是加密文件目录。

4、挂载文件

sudo mount -t ecryptfs /tmp/company_secret /tmp/company


  

 类似资料: