Acessar diretório home criptografado pelo Ubuntu usando live-cd

Se por algum motivo você necessitar acesso através de um Live CD ao diretório home de um determinado usuário, que foi criptografado pelo Ubuntu Linux, eis uma maneira de fazer isso (é necessário saber a senha de login do usuário).

Rodando a partir do live-cd, abra um terminal (irei acessar como root para não precisar usar o sudo a cada comando):

$ sudo passwd root
$ su root


Monte o Ubuntu que você tem gravado no HD no diretório /mnt do sistema que você está rodando no momento (live-cd):

# mount /dev/sda1 /mnt

* onde você deve substituir sda1 pela partição em que seu Ubuntu está instalado.

# mount -o bind /dev /mnt/dev
# mount -o bind /dev/shm /mnt/dev/shm
# mount -o bind /proc /mnt/proc
# mount -o bind /sys /mnt/sys
# chroot /mnt


Se o diretório home estiver em outro HD ou em outra partição, esta é a hora de montá-lo:

# mount /dev/sda6 /home

Agora faça login com o nome de usuário a qual pertence o diretório home que você quer acessar:

# su - gean

Para ter acesso descriptografado ao diretório home do usuário rode:

$ ecryptfs-mount-private

Você verá:

"Enter your login passphrase:"

* Informe a senha que o usuário dono do diretório utiliza para fazer o login do sistema. Feito isto, basta acessar a pasta do usuário que os arquivos aparecerão descriptografados:

$ cd /home/gean
$ ls -a

Comments

mahatmaquan said…
When you settle for the phrases and conditions you could have} shaken hands with the operator and agreed the phrases are fair, even if a few of them are to not 벳익스플로어 your liking. Some web site operators either do not know enough or just don't care whether their visitors land in nice spot|a nice place} or a foul spot offshore, lengthy as|so lengthy as} they get credit score for the referral. Simply trusting an web search engine to deliver quality, unbiased info is a idiot's errand. Even if you particularly refine your search to a narrow focus, the variety of results can be overwhelming. A trip to Kangwon Land is different choice|another choice}, relying on your resources. After a two-year discount in table count, they're again to full capacity with one hundred eighty felts and wheels to guess on.

Popular posts from this blog

Regresso de versão no Debian

Habilitar cliques do touchpad no Debian LXDE

Redimensionar discos virtuais img utilizados no KVM