GNU/Linux >> Linux Esercitazione >  >> Ubuntu

Ecryptfs-recover-private Creazione di cartelle crittografate illeggibili?

Dopo mesi di corretto funzionamento di ecryptfs è stato danneggiato e reso /home/ inaccessibile. Durante l'esecuzione (sia tramite account ospite che da live-CD):

[email protected]:/media/backup/home/me# ecryptfs-mount-private
ERROR: Encrypted private directory is not setup properly`

Ho quindi provato:

[email protected]:/media/backup/home/me# ecryptfs-recover-private
INFO: Searching for encrypted private directories (this might take a while)...
INFO: Found [/media/backup/home/.ecryptfs/me/.Private].
Try to recover this directory? [Y/n]: Y
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] n
INFO: To recover this directory, you MUST have your original MOUNT passphrase.
INFO: When you first setup your encrypted private directory, you were told to record
INFO: your MOUNT passphrase.
INFO: It should be 32 characters long, consisting of [0-9] and [a-f].

Enter your MOUNT passphrase: 
INFO: Success!  Private data mounted read-only at [/tmp/ecryptfs.uDWfDMCO].
[email protected]:/media/backup/home/me# ls /tmp/ecryptfs.uDWfDMCO/ECRYPTFS_FNEK_ENCRYPTED.F
Display all 124 possibilities? (y or n)'

Questo ha creato 124 cartelle crittografate che apparentemente contengono il mio /home/ dati. Non so come accedere a questi dati. Inoltre, guardando /var/log/syslog/ ci sono molti dei seguenti errori:

Dec  3 11:19:22 ubuntu kernel: [ 1627.918209] 
ecryptfs_parse_tag_70_packet: Error attempting to find auth tok for fnek sig [1b62c525049b45e0]; rc = [-2]
Dec  3 11:19:22 ubuntu kernel: [ 1627.918214] 
ecryptfs_decode_and_decrypt_filename: Could not parse tag 70 packet from filename; copying through filename as-is`

Mi piacerebbe davvero ottenere ecryptfs funzionare di nuovo correttamente o almeno per recuperare i miei dati.

Risposta accettata:

Ogni volta che provo a utilizzare la passphrase MOUNT, ottengo anche questi errori (la mia cartella home crittografata non è stata danneggiata):

[ 2977.052719] ecryptfs_parse_tag_70_packet: Error attempting to find auth tok for fnek sig [2e1f1a0ca6f5f8f3]; rc = [-2]
[ 2977.052721] ecryptfs_decode_and_decrypt_filename: Could not parse tag 70 packet from filename; copying through filename as-is
[ 2977.052726] Could not find key with description: [2e1f1a0ca6f5f8f3]
[ 2977.052728] process_request_key_err: No key

Sono riuscito a montare con successo la mia vecchia cartella home semplicemente usando la passphrase LOGIN, ovvero la password originale che hai usato quando hai creato la tua cartella home ecryptfs per la prima volta.

host:/mnt/mountpoint/home/.ecryptfs/user> ecryptfs-recover-private .Private
INFO: Found [.Private].
Try to recover this directory? [Y/n]: 
INFO: Found your wrapped-passphrase
Do you know your LOGIN passphrase? [Y/n] 
INFO: Enter your LOGIN passphrase...
Passphrase: 
Inserted auth tok with sig [XXXXXXXXXXXXXXXXXX] into the user session keyring
INFO: Success!  Private data mounted read-only at [/tmp/ecryptfs.8dXogIbs].

Ubuntu
  1. Come installare il linguaggio di programmazione Rust su Ubuntu 20.04

  2. Info su Cp –preserve=links?

  3. Ubuntu:creazione di file unitari in Ubuntu 16.04?

  4. Le cartelle Nautilus sono diventate cinesi?

  5. Recuperare la cartella eliminata nella home crittografata?

Come creare cartelle di app in Ubuntu 17.10

6 modi per aprire le cartelle in Ubuntu 20.04 LTS

Utilizzo di file e cartelle sullo schermo del desktop in Ubuntu

Yaru-colors:dai alle cartelle Ubuntu un tocco colorato

Creazione di un record SPF

vSphere vMotion crittografato