我正在使用ecryptyfs在我的电脑上存储一些敏感数据(Debian wheezy)。数据在一个分区中,该分区在启动时使用/etc/fstab自动挂载。我已经用正确的参数设置了/root/.ecryptfsrc。my .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文件系统格式化一个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这里会有什么问题呢?
感谢并致以问候
发布于 2015-04-27 03:28:22
我也遇到过完全相同的问题。
而在手册中,它被写成使用
-o key=passphrase:passphrase_passwd_file=/root/usbpasswd.txt工作命令有一个不同的选项:
-o passphrase_passwd_file=/root/usbpasswd.txt希望能有所帮助。干杯。
https://stackoverflow.com/questions/20248427
复制相似问题