如何使用 ecryptfs 重新开始

如何使用 ecryptfs 重新开始

这是我第一次尝试使用 ecryptfs。我做错了什么?

mkdir mydir
sudo mount -t ecryptfs  ./mydir  ./mydir
Passphrase: 
Select cipher: 
 1) aes: blocksize = 16; min keysize = 16; max keysize = 32
 2) blowfish: blocksize = 8; min keysize = 16; max keysize = 56
 3) des3_ede: blocksize = 8; min keysize = 24; max keysize = 24
 4) twofish: blocksize = 16; min keysize = 16; max keysize = 32
 5) cast6: blocksize = 16; min keysize = 16; max keysize = 32
 6) cast5: blocksize = 8; min keysize = 5; max keysize = 16
Selection [aes]: 
Select key bytes: 
 1) 16
 2) 32
 3) 24
Selection [16]: 
Enable plaintext passthrough (y/n) [n]: 
Enable filename encryption (y/n) [n]: 
Attempting to mount with the following options:
  ecryptfs_unlink_sigs
  ecryptfs_key_bytes=16
  ecryptfs_cipher=aes
  ecryptfs_sig=c64595108101311e
WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
it looks like you have never mounted with this key 
before. This could mean that you have typed your 
passphrase wrong.

如果我尝试使用以下命令定义一个新密码:

ecryptfs-rewrap-passphrase /home/$USER/.ecryptfs/wrapped-passphrase

它也想要旧密码!我没有旧密码,因为这是我第一次尝试。

相关内容