From 8856c415d16ae558609b615873826816c6718f42 Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Sat, 14 Nov 2015 14:25:23 -0500 Subject: redesign --- ...03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to '_posts/2015-03-28-reset-forgotten-password-on-luks-encrypted-ubuntu.markdown') 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 mount -o rw /dev/sda3 /root, taking advantage of the pre-existing empty directory. From there, I used chroot to run passwd 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. -- cgit v1.2.3