【发布时间】:2013-11-27 16:53:28
【问题描述】:
我正在使用 ecryptyfs 在我的 PC 中存储一些敏感数据(Debian wheezy)。数据在一个分区中,该分区在启动时使用/etc/fstab 自动挂载我已经使用正确的参数设置了/root/.ecryptfsrc。我的.ecryptfsrc的内容如下:
key=passphrase:passphrase_passwd_file=/mnt/usb/password.txt
ecryptfs_sig=deadbeefdeadbeef
ecryptfs_cipher=aes
ecryptfs_key_bytes=16
ecryptfs_passthrough=n
ecryptfs_enable_filename_crypto=n
系统重新启动后,此分区已正确挂载。到目前为止还不错。
我还需要将这些敏感数据传输到 USB 驱动器中的远程位置。所以我想用 ext2 fs 格式化一个 USB 驱动器,然后用 ecryptfs 挂载它。我也不想重复使用密码,并希望在挂载 ecryptfs 时为每个 USB 驱动器提供一次性密码。
ext2 分区的格式化和挂载按预期工作。我使用 ecryptfs 挂载新 USB 设备的命令如下。密码(临时)存储在/root/usbpasswd.txt:
mount -t ecryptfs \
-o "rw,key=passphrase:passphrase_passwd_file=/root/usbpasswd.txt,\
ecryptfs_unlink_sigs,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,\
ecryptfs_passthrough=n,ecryptfs_enable_filename_crypto=y" \
/mnt/usb2/ /mnt/usb2/
我没有在文件中使用密码安装新格式化的/mnt/usb2,而是提示输入Passphrase File,如下所示:
Passphrase File: /root/usbpasswd.txt
Passphrase File: /mnt/usb/password.txt
Passphrase File: /root/usbpasswd.txt
Passphrase File: ^C
这里有什么问题?
感谢和问候,
【问题讨论】: