diff options
author | Ben Burwell <ben@benburwell.com> | 2015-11-14 14:38:28 -0500 |
---|---|---|
committer | Ben Burwell <ben@benburwell.com> | 2015-11-14 14:38:28 -0500 |
commit | 0d9ce29b25327f8b31040a7d945121ceaef6dc0d (patch) | |
tree | c4dfa0ab427ddd0c97c8c398a07670d820e6474f /_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown | |
parent | ce236fec927e1ca7991588a374607e53172844e6 (diff) | |
parent | f20aae71dca254e6818632821fb19617985e1cf5 (diff) |
Merge pull request #8 from benburwell/redesign
Site redesign (again)
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.markdown | 6 |
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. |