summaryrefslogtreecommitdiff
path: root/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown
diff options
context:
space:
mode:
Diffstat (limited to '_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown')
-rw-r--r--_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown6
1 files changed, 4 insertions, 2 deletions
diff --git a/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown b/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown
index 7837969..63739d4 100644
--- a/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown
+++ b/_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown
@@ -28,8 +28,10 @@ After waiting for about 30 seconds or a minute, I saw a message that waiting for
Next, I mounted the freshly-unlocked disk with <code>mount -o rw /dev/sda3 /root</code>, taking advantage of the pre-existing empty directory. From there, I used <code>chroot</code> to run <code>passwd</code> in the OS.
- $ chroot /root passwd
- $ chroot /root passwd myUserName
+{% highlight shell %}
+$ chroot /root passwd
+$ chroot /root passwd myUserName
+{% endhighlight %}
By running these commands, I successfully reset both the root password as well as the password for my account. From there, I was able to restart the machine and boot normally.