ubuntu取消主目录加密

Access an encrypted home directory when you’re not logged in – say, from a live CD – and all you’ll see is a README file. You’ll need a terminal command to recover your encrypted files.

当您未登录时(例如,从实时CD)访问加密的主目录,您将看到的只是一个README文件。 您将需要一个终端命令来恢复您的加密文件。

You should also back up your mount passphrase ahead of time – you may need this in the future. While eCryptfs normally decrypts your files with your login passphrase, the mount passphrase may be necessary if eCryptfs’s files become lost.

您还应该提前备份装载密码短语–将来可能会需要。 尽管eCryptfs通常使用您的登录密码来解密文件,但是如果eCryptfs的文件丢失了,则可能需要挂载密码。

备份加密密码短语 (Back Up Encryption Passphrase)

If you use an encrypted Ubuntu home directory, you should keep a backup copy of your mount passphrase. You’ll see a dialog prompting you to do so after encrypting your home directory. Write down this passphrase and keep it somewhere safe – you may need it to recover your files in the future.

如果使用加密的Ubuntu主目录,则应保留安装密码的备份副本。 加密主目录后,您会看到一个对话框提示您这样做。 写下该密码短语并将其保存在安全的地方–将来可能需要它来恢复文件。

If you want to acquire this mount passphrase at a later date, just run the ecryptfs-unwrap-passphrase command while logged in.

如果您想在以后获取此安装密码,只需在登录时运行ecryptfs-unwrap-passphrase命令即可。

You can still recover your encrypted files without this mount passphrase, assuming the ecryptfs wrapped passphrase is still available on your hard drive. However, if you lose this data or it becomes corrupted, you’ll need the mount passphrase to recover your files.

您仍然可以在没有此安装密码的情况下恢复加密文件,前提是您的硬盘驱动器上仍保留了ecryptfs包装的密码。 但是,如果丢失此数据或数据损坏,则需要安装密码短语来恢复文件。

从Live CD中恢复 (Recovering From a Live CD)

You can recover your files by booting from a Ubuntu live CD or USB drive. If you still have the disc or USB drive you installed Ubuntu from, you can use that. Otherwise, you can download an ISO from Ubuntu’s website and place it on a CD, DVD, or USB drive.

您可以通过从Ubuntu Live CD或USB驱动器启动来恢复文件。 如果仍然有从中安装Ubuntu的光盘或USB驱动器,则可以使用它。 否则,您可以从Ubuntu网站下载ISO并将其放在CD,DVD或USB驱动器上。

Log in to the live Ubuntu environment and ensure the partition containing your encrypted home directory is mounted. You can easily mount it by clicking It in the file manager – you’ll see an eject (unmount) icon, indicating the partition is mounted.

登录到实时Ubuntu环境,并确保已安装包含加密主目录的分区。 您可以通过在文件管理器中单击“它”来轻松安装它-您将看到一个弹出(卸载)图标,指示该分区已安装。

Next, fire up a terminal and run the following command to search your mounted file systems for encrypted private directories

接下来,启动一个终端并运行以下命令以在已安装的文件系统中搜索加密的私有目录

sudo ecryptfs-recover-private

sudo ecryptfs恢复专用

The command will offer to recover an encrypted directory if it locates one.

如果找到一个加密目录,该命令将提供恢复该目录的功能。

Assuming the command found a wrapped passphrase file on your system, it will prompt you for your login passphrase. If it doesn’t find this file, you’ll need the mount passphrase from the ecryptfs-unwrap-passphrase command – hopefully you have a copy of this. If you don’t, you can’t recover your files.

假设该命令在您的系统上找到了一个包装好的密码短语文件,它将提示您输入登录密码短语。 如果找不到该文件,则需要使用ecryptfs-unwrap-passphrase命令中的mount密码-希望您有一个副本。 否则,您将无法恢复文件。

The command will mount the encrypted directory in your /tmp directory.

该命令会将加密的目录挂载到/ tmp目录中。

You can access this directory to view the decrypted versions of your files. However, you may not have read access to this directory as the live CD user.

您可以访问此目录以查看文件的解密版本。 但是,您可能没有实时CD用户对此目录的读取权限。

To access the directory with a graphical file browser, run Nautilus as root. Press Alt+F2, type gksu nautilus, and press Enter.

要使用图形文件浏览器访问目录,请以root用户身份运行Nautilus。 按Alt + F2,键入gksu nautilus ,然后按Enter。

You’ll be able to access your files from the Nautilus window running as root. From here, you can easily copy the files to an external hard drive or another location.

您将可以从以root用户身份运行的Nautilus窗口中访问文件。 从这里,您可以轻松地将文件复制到外部硬盘驱动器或其他位置。

翻译自: https://www.howtogeek.com/116297/how-to-recover-an-encrypted-home-directory-on-ubuntu/

ubuntu取消主目录加密

ubuntu取消主目录加密_如何在Ubuntu上恢复加密的主目录相关推荐

  1. 如何在前端删除项目中的文件_如何在macOS上恢复已删除的文件

    有时候不小心删除了我们不打算删除的MacBook上的文件.在MacBook上恢复永久删除的文件非常困难,但这并非不可能.在本文中,我们将指导您如何恢复MacBook上最近恢复的文件或永久删除的文件.从 ...

  2. ubuntu的web服务器_如何在Ubuntu上安装OpenLiteSpeed Web服务器?

    ubuntu的web服务器 Want to install OpenLiteSpeed Webserver on Ubuntu? Today we're going to do just that. ...

  3. ubuntu安装zlib库_如何在Ubuntu中安装zlib库?

    ubuntu安装zlib库 On Ubuntu (18.04), installing zlib reported unable to locate package zlib: 在Ubuntu(18. ...

  4. ubuntu安装python百度经验_如何在Ubuntu 20.04上安装Python 3.9(含python编译安装和使用Apt命令安装)...

    在本文中,我们将向您展示在Ubuntu 20.04上安装Python 3.9的两种方法.第一种使用APT命令安装Python3.9,第二种是在Ubuntu20.04上编译安装Python 3.9.本教 ...

  5. ubuntu 局域网dns服务器_如何在 Ubuntu 16.04 服务器上配置内网 DNS 服务

    DNS 1. 简介 本文使用 BIND9,用尽量少的步骤,搭建出一个可用的内网 DNS 服务.另外要说明的一点是,本文不仅适用于 Ubuntu 16.04,也使用其后的 Ubuntu 系统(截止到目前 ...

  6. ubuntu软件包降级命令_如何在Ubuntu上降级软件包

    ubuntu软件包降级命令 Ubuntu's Update Manager keeps your packages at the latest version, but occasionally a ...

  7. ubuntu 多指触摸_如何在Ubuntu上交换两指和三指触摸板轻按操作

    ubuntu 多指触摸 By default, Ubuntu uses a two-finger tap for right-click and a three-finger tap for midd ...

  8. ubuntu java 关闭进程_如何在Ubuntu中关闭Tomcat?

    问题描述 我试图关闭tomcat,如下所示,但是tomcat似乎仍在运行(http://localhost:8080 /) vandegraff@vandegraff-laptop:~$ /usr/s ...

  9. mac删除文件恢复_如何在Mac上恢复已删除的文件

    mac删除文件恢复 Nearly everyone has accidentally deleted a file before. Whether it's family pictures or im ...

最新文章

  1. 面试必问---Java线程池8大拒绝策略
  2. Vue开发入门看这篇文章就够了
  3. java格式化double_java – 格式化double以省略不必要的“.0”,永远不会关闭
  4. 学c语言用vs,毫无编程基础的小白准备学习C语言,用VC6还是VS2015?
  5. linux下java程序实现重启功能
  6. 计算机office基础知识的试题,office计算机基础知识(附答案).doc
  7. request.getRequestDispatcher(url).forward(request, response)
  8. 让程序员崩溃只需要一句话
  9. 黑苹果固态硬盘_普通电脑也能尝试:MacOS黑苹果+雷电3硬盘盒测试
  10. 前照灯检测仪_前照灯检测仪
  11. 2021年后Win10续用IE Flash插件的方法
  12. 如何保存已经训练好的机器学习模型
  13. pda通用扫描app_手持终端PDA盘点机盘点软件盘点APP
  14. 【高等数学】九种二次曲面及其方程
  15. Maxwell和Simplorer联合仿真设置注意事项
  16. 关于simplis仿真和驱动方法
  17. 第三届长安杯解析(2次修订版)镜像+具体解析+个人详细解题过程,涉及多个模块,我会努力把所有写好,可以做一下题目,提升很明显。
  18. c语言象棋教程下载,C语言程序源代码中国象棋.doc-资源下载在线文库www.lddoc.cn...
  19. wav to image concat 版
  20. 别只会搜日志了,求你懂点原理吧(超详细)

热门文章

  1. .NET开发中应该遵循的几点建议
  2. 利用rfcomm实现树莓派与手机通信_工业物联网 | 怎么用NodeRed实现树莓派与阿里云物联网平台通信?虹科告诉你!...
  3. 计算机专业答辩模板,论文答辩模板-计算机专业.ppt
  4. Android版哆啦A梦连连看游戏源码完整版
  5. JTable常见用法细则
  6. Cocos2d-x VS. OGEngine,联盟与部落的战争
  7. redis存opc_Redis集群的三种模式
  8. Sending HTML content in an email using PHP
  9. 牛客网暑期ACM多校训练营(第二场)J farm (二维树状数组)
  10. 【Luogu3931】SAC E#1 - 一道难题 Tree