Reset owner password on Ubuntu 18.04 single-boot Dell laptop
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
In trying to reset my password on my personal Ubuntu 18.04 single-boot Dell laptop, I followed various steps in the 15 answers here. Unfortunately, none of them work for me. Around steps 7 and 8 my system behaves differently than the solutions and I never get to a prompt to enter passwd <usrname>.
I've tried a lot of permutations on the checklists I've found, here's the basic steps I'm taking:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right Shift key didn't work for me; didn't try left Shift key).
- Select Advanced Ubuntu options.
- Select Ubuntu ... (recovery mode).
- Press "e" for edit.
- Navigate to the line that starts with "linux".
- I've seen and tried several slight variations in the edits recommended on this line:
.
- Option 1: change
rotorw, then navigate to end of line and enter
init=/bin/bash. Additional commands that already existed at the end
of the line now separaterwandinit=/bin/bash. - Option 2: change
rotorwand immediately after enter
init=/bin/bash. Additional commands that already existed at the
end of the line remain at the end of the line. - Option 3: navigate to end of line and enter
init=/bin/bash. Do
not changero.
Here's where things go wrong. Regardless of what I enter above, I never get to a prompt to reset the password.
- Press F10 (or Ctrl-x) to boot the system.
From the instructions I've seen, this is where I should see a "passwordless root shell" or perhaps a Recovery Menu screen such as the one below that I copied from the accepted answer in the link. But I never see either of these.

Instead, depending on which edit I made in Step 7, one of two things happens:
- If I changed
rotorwin Step 7, the boot process runs for several seconds and then stalls. - If I didn't change
ro, the boot process runs until the GUI login screen.
Either way I never get to reset the password.
Edit:
My screenshots of steps 4 thru 7 following the checklist at https://wiki.ubuntu.com/RecoveryMode. As in my previous attempts, the boot process does not take me to the promised shell prompt to reset the password but instead completes on the Ubuntu log in GUI page.
Step 4

Step 5

Step 6

Boot process scrolls up the window...
And ends with Ubuntu launched and ready for user log in:

Step 7 is never reached.
boot grub2 18.04 password passwd
|
show 3 more comments
In trying to reset my password on my personal Ubuntu 18.04 single-boot Dell laptop, I followed various steps in the 15 answers here. Unfortunately, none of them work for me. Around steps 7 and 8 my system behaves differently than the solutions and I never get to a prompt to enter passwd <usrname>.
I've tried a lot of permutations on the checklists I've found, here's the basic steps I'm taking:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right Shift key didn't work for me; didn't try left Shift key).
- Select Advanced Ubuntu options.
- Select Ubuntu ... (recovery mode).
- Press "e" for edit.
- Navigate to the line that starts with "linux".
- I've seen and tried several slight variations in the edits recommended on this line:
.
- Option 1: change
rotorw, then navigate to end of line and enter
init=/bin/bash. Additional commands that already existed at the end
of the line now separaterwandinit=/bin/bash. - Option 2: change
rotorwand immediately after enter
init=/bin/bash. Additional commands that already existed at the
end of the line remain at the end of the line. - Option 3: navigate to end of line and enter
init=/bin/bash. Do
not changero.
Here's where things go wrong. Regardless of what I enter above, I never get to a prompt to reset the password.
- Press F10 (or Ctrl-x) to boot the system.
From the instructions I've seen, this is where I should see a "passwordless root shell" or perhaps a Recovery Menu screen such as the one below that I copied from the accepted answer in the link. But I never see either of these.

Instead, depending on which edit I made in Step 7, one of two things happens:
- If I changed
rotorwin Step 7, the boot process runs for several seconds and then stalls. - If I didn't change
ro, the boot process runs until the GUI login screen.
Either way I never get to reset the password.
Edit:
My screenshots of steps 4 thru 7 following the checklist at https://wiki.ubuntu.com/RecoveryMode. As in my previous attempts, the boot process does not take me to the promised shell prompt to reset the password but instead completes on the Ubuntu log in GUI page.
Step 4

Step 5

Step 6

Boot process scrolls up the window...
And ends with Ubuntu launched and ready for user log in:

Step 7 is never reached.
boot grub2 18.04 password passwd
Sorry but it's not very clear where is the issue. What is happening when you run passwd <username> ?
– ob2
Mar 27 at 22:12
I never get to runpasswd username>. That screen/prompt never comes up.
– Karl Baker
Mar 27 at 22:20
What kind of screen did you have after you pressed on F10?
– ob2
Mar 27 at 23:03
Did you try to just follow Jorge Castro's answer?
– danzel
Mar 28 at 0:25
@danzel, Yes. But I never see the "Recovery Menu" screen. My image of it above is copied from his post.
– Karl Baker
Mar 28 at 1:26
|
show 3 more comments
In trying to reset my password on my personal Ubuntu 18.04 single-boot Dell laptop, I followed various steps in the 15 answers here. Unfortunately, none of them work for me. Around steps 7 and 8 my system behaves differently than the solutions and I never get to a prompt to enter passwd <usrname>.
I've tried a lot of permutations on the checklists I've found, here's the basic steps I'm taking:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right Shift key didn't work for me; didn't try left Shift key).
- Select Advanced Ubuntu options.
- Select Ubuntu ... (recovery mode).
- Press "e" for edit.
- Navigate to the line that starts with "linux".
- I've seen and tried several slight variations in the edits recommended on this line:
.
- Option 1: change
rotorw, then navigate to end of line and enter
init=/bin/bash. Additional commands that already existed at the end
of the line now separaterwandinit=/bin/bash. - Option 2: change
rotorwand immediately after enter
init=/bin/bash. Additional commands that already existed at the
end of the line remain at the end of the line. - Option 3: navigate to end of line and enter
init=/bin/bash. Do
not changero.
Here's where things go wrong. Regardless of what I enter above, I never get to a prompt to reset the password.
- Press F10 (or Ctrl-x) to boot the system.
From the instructions I've seen, this is where I should see a "passwordless root shell" or perhaps a Recovery Menu screen such as the one below that I copied from the accepted answer in the link. But I never see either of these.

Instead, depending on which edit I made in Step 7, one of two things happens:
- If I changed
rotorwin Step 7, the boot process runs for several seconds and then stalls. - If I didn't change
ro, the boot process runs until the GUI login screen.
Either way I never get to reset the password.
Edit:
My screenshots of steps 4 thru 7 following the checklist at https://wiki.ubuntu.com/RecoveryMode. As in my previous attempts, the boot process does not take me to the promised shell prompt to reset the password but instead completes on the Ubuntu log in GUI page.
Step 4

Step 5

Step 6

Boot process scrolls up the window...
And ends with Ubuntu launched and ready for user log in:

Step 7 is never reached.
boot grub2 18.04 password passwd
In trying to reset my password on my personal Ubuntu 18.04 single-boot Dell laptop, I followed various steps in the 15 answers here. Unfortunately, none of them work for me. Around steps 7 and 8 my system behaves differently than the solutions and I never get to a prompt to enter passwd <usrname>.
I've tried a lot of permutations on the checklists I've found, here's the basic steps I'm taking:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right Shift key didn't work for me; didn't try left Shift key).
- Select Advanced Ubuntu options.
- Select Ubuntu ... (recovery mode).
- Press "e" for edit.
- Navigate to the line that starts with "linux".
- I've seen and tried several slight variations in the edits recommended on this line:
.
- Option 1: change
rotorw, then navigate to end of line and enter
init=/bin/bash. Additional commands that already existed at the end
of the line now separaterwandinit=/bin/bash. - Option 2: change
rotorwand immediately after enter
init=/bin/bash. Additional commands that already existed at the
end of the line remain at the end of the line. - Option 3: navigate to end of line and enter
init=/bin/bash. Do
not changero.
Here's where things go wrong. Regardless of what I enter above, I never get to a prompt to reset the password.
- Press F10 (or Ctrl-x) to boot the system.
From the instructions I've seen, this is where I should see a "passwordless root shell" or perhaps a Recovery Menu screen such as the one below that I copied from the accepted answer in the link. But I never see either of these.

Instead, depending on which edit I made in Step 7, one of two things happens:
- If I changed
rotorwin Step 7, the boot process runs for several seconds and then stalls. - If I didn't change
ro, the boot process runs until the GUI login screen.
Either way I never get to reset the password.
Edit:
My screenshots of steps 4 thru 7 following the checklist at https://wiki.ubuntu.com/RecoveryMode. As in my previous attempts, the boot process does not take me to the promised shell prompt to reset the password but instead completes on the Ubuntu log in GUI page.
Step 4

Step 5

Step 6

Boot process scrolls up the window...
And ends with Ubuntu launched and ready for user log in:

Step 7 is never reached.
boot grub2 18.04 password passwd
boot grub2 18.04 password passwd
edited Mar 28 at 4:55
Karl Baker
asked Mar 27 at 21:58
Karl BakerKarl Baker
1115
1115
Sorry but it's not very clear where is the issue. What is happening when you run passwd <username> ?
– ob2
Mar 27 at 22:12
I never get to runpasswd username>. That screen/prompt never comes up.
– Karl Baker
Mar 27 at 22:20
What kind of screen did you have after you pressed on F10?
– ob2
Mar 27 at 23:03
Did you try to just follow Jorge Castro's answer?
– danzel
Mar 28 at 0:25
@danzel, Yes. But I never see the "Recovery Menu" screen. My image of it above is copied from his post.
– Karl Baker
Mar 28 at 1:26
|
show 3 more comments
Sorry but it's not very clear where is the issue. What is happening when you run passwd <username> ?
– ob2
Mar 27 at 22:12
I never get to runpasswd username>. That screen/prompt never comes up.
– Karl Baker
Mar 27 at 22:20
What kind of screen did you have after you pressed on F10?
– ob2
Mar 27 at 23:03
Did you try to just follow Jorge Castro's answer?
– danzel
Mar 28 at 0:25
@danzel, Yes. But I never see the "Recovery Menu" screen. My image of it above is copied from his post.
– Karl Baker
Mar 28 at 1:26
Sorry but it's not very clear where is the issue. What is happening when you run passwd <username> ?
– ob2
Mar 27 at 22:12
Sorry but it's not very clear where is the issue. What is happening when you run passwd <username> ?
– ob2
Mar 27 at 22:12
I never get to run
passwd username>. That screen/prompt never comes up.– Karl Baker
Mar 27 at 22:20
I never get to run
passwd username>. That screen/prompt never comes up.– Karl Baker
Mar 27 at 22:20
What kind of screen did you have after you pressed on F10?
– ob2
Mar 27 at 23:03
What kind of screen did you have after you pressed on F10?
– ob2
Mar 27 at 23:03
Did you try to just follow Jorge Castro's answer?
– danzel
Mar 28 at 0:25
Did you try to just follow Jorge Castro's answer?
– danzel
Mar 28 at 0:25
@danzel, Yes. But I never see the "Recovery Menu" screen. My image of it above is copied from his post.
– Karl Baker
Mar 28 at 1:26
@danzel, Yes. But I never see the "Recovery Menu" screen. My image of it above is copied from his post.
– Karl Baker
Mar 28 at 1:26
|
show 3 more comments
2 Answers
2
active
oldest
votes
The steps I had to take to reset my password differ somewhat from all the answers linked in the original post. I start out the same but never see a Recovery Menu screen, never enter "/usr/sbin/usermod -p '!' root", etc. I make changes at the command line but the behavior of my CLI is not predicted in any of the other how-tos I tried.
These steps were taken on a single-boot Dell running only Ubuntu 18.04:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right
Shift key didn't work for me; didn't try left Shift key). - Select "Advanced options for Ubuntu".
- Press Enter.
- Select "Ubuntu ... (recovery mode)". I had four kernels and chose
the latest one. - Press "e" for edit.
- Navigate to the line that starts with "linux /boot/vmliuz-...". For
me that line ends with "ro recovery nomodeset".
Remove the last part of line, "ro recovery nomodeset", and replace it with "rw init=/bin/bash". (Thanks to faqforge website for making this step clear.)- Press F10 to reboot the machine.
Here's where I will switch to narrating my experience in the first person rather than prescribing what others should do. I'm not sure why I never see the Recovery Menu at this stage that most answers indicate, or why my command line looks and behaves as it does, but in the end this worked for me where other checklists didn't. Maybe it will work for you too.
After a few seconds the boot process stops and displays this prompt:
root@(none):/#
I start typing "mount -o remount,rw /" but can only type part of the command before the system takes control and outputs this:

The cursor is dangling there, not yet back to a prompt, so I finish typing the command and hit Enter. The output looks unpromising --- it's got the word "errors" in it --- but I am returned to the prompt.
I try again and this time am able to complete the command, "mount -o remount,rw /". I press Enter and see the same output.

But I'm at a new prompt so I figure what the heck, let's try "passwd".
I enter "passwd my_user_name" and press Enter.
And lo and behold, I am prompted for my new password. I enter it, reenter it, and joy of joys, there's a message of success.

Back at a new "(none)" prompt, I type exit and hit Enter. From some checklists I tried, this is supposed to take me back to the Recovery Menu, but since I didn't see that screen on the way in it's probably asking too much to be taken "back" to it now :)
The boot process picks up for a few seconds, then gets hung up here:

After waiting a while, with no options I do a hard power down, figuring it's 50/50 if my new password survives.
On restart I let boot go thru the normal process. It takes longer than usual, but eventually gets to the gui log in screen. I enter my new password and ...
This immovable modal pops up: "Enter password to unlock your login keyring. The password you use to log in to your computer no longer matches ...."

Have I gotten this far only to be denied? I try my new password but of course it is not correct. I try a few more but of course they fail as well, b/c I don't know my old password! Now what?
And then I see it. A Cancel button, right there in the dialog box. I press it and voila, I'm in! Later I'll look into what the "login keyring" is, but for now I'll consider that the password issue is fixed. Hope this helps someone else out there!
1
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
add a comment |
I just verified that the steps here: https://wiki.ubuntu.com/RecoveryMode will get you to the shell prompt to reset the password.
After step 8, you will be able to enter the passwd <username> command.
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129259%2freset-owner-password-on-ubuntu-18-04-single-boot-dell-laptop%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
The steps I had to take to reset my password differ somewhat from all the answers linked in the original post. I start out the same but never see a Recovery Menu screen, never enter "/usr/sbin/usermod -p '!' root", etc. I make changes at the command line but the behavior of my CLI is not predicted in any of the other how-tos I tried.
These steps were taken on a single-boot Dell running only Ubuntu 18.04:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right
Shift key didn't work for me; didn't try left Shift key). - Select "Advanced options for Ubuntu".
- Press Enter.
- Select "Ubuntu ... (recovery mode)". I had four kernels and chose
the latest one. - Press "e" for edit.
- Navigate to the line that starts with "linux /boot/vmliuz-...". For
me that line ends with "ro recovery nomodeset".
Remove the last part of line, "ro recovery nomodeset", and replace it with "rw init=/bin/bash". (Thanks to faqforge website for making this step clear.)- Press F10 to reboot the machine.
Here's where I will switch to narrating my experience in the first person rather than prescribing what others should do. I'm not sure why I never see the Recovery Menu at this stage that most answers indicate, or why my command line looks and behaves as it does, but in the end this worked for me where other checklists didn't. Maybe it will work for you too.
After a few seconds the boot process stops and displays this prompt:
root@(none):/#
I start typing "mount -o remount,rw /" but can only type part of the command before the system takes control and outputs this:

The cursor is dangling there, not yet back to a prompt, so I finish typing the command and hit Enter. The output looks unpromising --- it's got the word "errors" in it --- but I am returned to the prompt.
I try again and this time am able to complete the command, "mount -o remount,rw /". I press Enter and see the same output.

But I'm at a new prompt so I figure what the heck, let's try "passwd".
I enter "passwd my_user_name" and press Enter.
And lo and behold, I am prompted for my new password. I enter it, reenter it, and joy of joys, there's a message of success.

Back at a new "(none)" prompt, I type exit and hit Enter. From some checklists I tried, this is supposed to take me back to the Recovery Menu, but since I didn't see that screen on the way in it's probably asking too much to be taken "back" to it now :)
The boot process picks up for a few seconds, then gets hung up here:

After waiting a while, with no options I do a hard power down, figuring it's 50/50 if my new password survives.
On restart I let boot go thru the normal process. It takes longer than usual, but eventually gets to the gui log in screen. I enter my new password and ...
This immovable modal pops up: "Enter password to unlock your login keyring. The password you use to log in to your computer no longer matches ...."

Have I gotten this far only to be denied? I try my new password but of course it is not correct. I try a few more but of course they fail as well, b/c I don't know my old password! Now what?
And then I see it. A Cancel button, right there in the dialog box. I press it and voila, I'm in! Later I'll look into what the "login keyring" is, but for now I'll consider that the password issue is fixed. Hope this helps someone else out there!
1
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
add a comment |
The steps I had to take to reset my password differ somewhat from all the answers linked in the original post. I start out the same but never see a Recovery Menu screen, never enter "/usr/sbin/usermod -p '!' root", etc. I make changes at the command line but the behavior of my CLI is not predicted in any of the other how-tos I tried.
These steps were taken on a single-boot Dell running only Ubuntu 18.04:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right
Shift key didn't work for me; didn't try left Shift key). - Select "Advanced options for Ubuntu".
- Press Enter.
- Select "Ubuntu ... (recovery mode)". I had four kernels and chose
the latest one. - Press "e" for edit.
- Navigate to the line that starts with "linux /boot/vmliuz-...". For
me that line ends with "ro recovery nomodeset".
Remove the last part of line, "ro recovery nomodeset", and replace it with "rw init=/bin/bash". (Thanks to faqforge website for making this step clear.)- Press F10 to reboot the machine.
Here's where I will switch to narrating my experience in the first person rather than prescribing what others should do. I'm not sure why I never see the Recovery Menu at this stage that most answers indicate, or why my command line looks and behaves as it does, but in the end this worked for me where other checklists didn't. Maybe it will work for you too.
After a few seconds the boot process stops and displays this prompt:
root@(none):/#
I start typing "mount -o remount,rw /" but can only type part of the command before the system takes control and outputs this:

The cursor is dangling there, not yet back to a prompt, so I finish typing the command and hit Enter. The output looks unpromising --- it's got the word "errors" in it --- but I am returned to the prompt.
I try again and this time am able to complete the command, "mount -o remount,rw /". I press Enter and see the same output.

But I'm at a new prompt so I figure what the heck, let's try "passwd".
I enter "passwd my_user_name" and press Enter.
And lo and behold, I am prompted for my new password. I enter it, reenter it, and joy of joys, there's a message of success.

Back at a new "(none)" prompt, I type exit and hit Enter. From some checklists I tried, this is supposed to take me back to the Recovery Menu, but since I didn't see that screen on the way in it's probably asking too much to be taken "back" to it now :)
The boot process picks up for a few seconds, then gets hung up here:

After waiting a while, with no options I do a hard power down, figuring it's 50/50 if my new password survives.
On restart I let boot go thru the normal process. It takes longer than usual, but eventually gets to the gui log in screen. I enter my new password and ...
This immovable modal pops up: "Enter password to unlock your login keyring. The password you use to log in to your computer no longer matches ...."

Have I gotten this far only to be denied? I try my new password but of course it is not correct. I try a few more but of course they fail as well, b/c I don't know my old password! Now what?
And then I see it. A Cancel button, right there in the dialog box. I press it and voila, I'm in! Later I'll look into what the "login keyring" is, but for now I'll consider that the password issue is fixed. Hope this helps someone else out there!
1
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
add a comment |
The steps I had to take to reset my password differ somewhat from all the answers linked in the original post. I start out the same but never see a Recovery Menu screen, never enter "/usr/sbin/usermod -p '!' root", etc. I make changes at the command line but the behavior of my CLI is not predicted in any of the other how-tos I tried.
These steps were taken on a single-boot Dell running only Ubuntu 18.04:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right
Shift key didn't work for me; didn't try left Shift key). - Select "Advanced options for Ubuntu".
- Press Enter.
- Select "Ubuntu ... (recovery mode)". I had four kernels and chose
the latest one. - Press "e" for edit.
- Navigate to the line that starts with "linux /boot/vmliuz-...". For
me that line ends with "ro recovery nomodeset".
Remove the last part of line, "ro recovery nomodeset", and replace it with "rw init=/bin/bash". (Thanks to faqforge website for making this step clear.)- Press F10 to reboot the machine.
Here's where I will switch to narrating my experience in the first person rather than prescribing what others should do. I'm not sure why I never see the Recovery Menu at this stage that most answers indicate, or why my command line looks and behaves as it does, but in the end this worked for me where other checklists didn't. Maybe it will work for you too.
After a few seconds the boot process stops and displays this prompt:
root@(none):/#
I start typing "mount -o remount,rw /" but can only type part of the command before the system takes control and outputs this:

The cursor is dangling there, not yet back to a prompt, so I finish typing the command and hit Enter. The output looks unpromising --- it's got the word "errors" in it --- but I am returned to the prompt.
I try again and this time am able to complete the command, "mount -o remount,rw /". I press Enter and see the same output.

But I'm at a new prompt so I figure what the heck, let's try "passwd".
I enter "passwd my_user_name" and press Enter.
And lo and behold, I am prompted for my new password. I enter it, reenter it, and joy of joys, there's a message of success.

Back at a new "(none)" prompt, I type exit and hit Enter. From some checklists I tried, this is supposed to take me back to the Recovery Menu, but since I didn't see that screen on the way in it's probably asking too much to be taken "back" to it now :)
The boot process picks up for a few seconds, then gets hung up here:

After waiting a while, with no options I do a hard power down, figuring it's 50/50 if my new password survives.
On restart I let boot go thru the normal process. It takes longer than usual, but eventually gets to the gui log in screen. I enter my new password and ...
This immovable modal pops up: "Enter password to unlock your login keyring. The password you use to log in to your computer no longer matches ...."

Have I gotten this far only to be denied? I try my new password but of course it is not correct. I try a few more but of course they fail as well, b/c I don't know my old password! Now what?
And then I see it. A Cancel button, right there in the dialog box. I press it and voila, I'm in! Later I'll look into what the "login keyring" is, but for now I'll consider that the password issue is fixed. Hope this helps someone else out there!
The steps I had to take to reset my password differ somewhat from all the answers linked in the original post. I start out the same but never see a Recovery Menu screen, never enter "/usr/sbin/usermod -p '!' root", etc. I make changes at the command line but the behavior of my CLI is not predicted in any of the other how-tos I tried.
These steps were taken on a single-boot Dell running only Ubuntu 18.04:
- Turn on computer.
- Press and hold Esc key when Dell screen appears to enter GRUB (right
Shift key didn't work for me; didn't try left Shift key). - Select "Advanced options for Ubuntu".
- Press Enter.
- Select "Ubuntu ... (recovery mode)". I had four kernels and chose
the latest one. - Press "e" for edit.
- Navigate to the line that starts with "linux /boot/vmliuz-...". For
me that line ends with "ro recovery nomodeset".
Remove the last part of line, "ro recovery nomodeset", and replace it with "rw init=/bin/bash". (Thanks to faqforge website for making this step clear.)- Press F10 to reboot the machine.
Here's where I will switch to narrating my experience in the first person rather than prescribing what others should do. I'm not sure why I never see the Recovery Menu at this stage that most answers indicate, or why my command line looks and behaves as it does, but in the end this worked for me where other checklists didn't. Maybe it will work for you too.
After a few seconds the boot process stops and displays this prompt:
root@(none):/#
I start typing "mount -o remount,rw /" but can only type part of the command before the system takes control and outputs this:

The cursor is dangling there, not yet back to a prompt, so I finish typing the command and hit Enter. The output looks unpromising --- it's got the word "errors" in it --- but I am returned to the prompt.
I try again and this time am able to complete the command, "mount -o remount,rw /". I press Enter and see the same output.

But I'm at a new prompt so I figure what the heck, let's try "passwd".
I enter "passwd my_user_name" and press Enter.
And lo and behold, I am prompted for my new password. I enter it, reenter it, and joy of joys, there's a message of success.

Back at a new "(none)" prompt, I type exit and hit Enter. From some checklists I tried, this is supposed to take me back to the Recovery Menu, but since I didn't see that screen on the way in it's probably asking too much to be taken "back" to it now :)
The boot process picks up for a few seconds, then gets hung up here:

After waiting a while, with no options I do a hard power down, figuring it's 50/50 if my new password survives.
On restart I let boot go thru the normal process. It takes longer than usual, but eventually gets to the gui log in screen. I enter my new password and ...
This immovable modal pops up: "Enter password to unlock your login keyring. The password you use to log in to your computer no longer matches ...."

Have I gotten this far only to be denied? I try my new password but of course it is not correct. I try a few more but of course they fail as well, b/c I don't know my old password! Now what?
And then I see it. A Cancel button, right there in the dialog box. I press it and voila, I'm in! Later I'll look into what the "login keyring" is, but for now I'll consider that the password issue is fixed. Hope this helps someone else out there!
edited Mar 30 at 0:32
answered Mar 29 at 2:25
Karl BakerKarl Baker
1115
1115
1
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
add a comment |
1
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
1
1
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
This is always the process I use, it works wonders. In fact, even OS X/macOS use a similar process (though you do Command+S to do it instead of GRUB)
– Brenden McFarling
Mar 30 at 0:45
add a comment |
I just verified that the steps here: https://wiki.ubuntu.com/RecoveryMode will get you to the shell prompt to reset the password.
After step 8, you will be able to enter the passwd <username> command.
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
add a comment |
I just verified that the steps here: https://wiki.ubuntu.com/RecoveryMode will get you to the shell prompt to reset the password.
After step 8, you will be able to enter the passwd <username> command.
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
add a comment |
I just verified that the steps here: https://wiki.ubuntu.com/RecoveryMode will get you to the shell prompt to reset the password.
After step 8, you will be able to enter the passwd <username> command.
I just verified that the steps here: https://wiki.ubuntu.com/RecoveryMode will get you to the shell prompt to reset the password.
After step 8, you will be able to enter the passwd <username> command.
answered Mar 28 at 3:01
GeoCacheJunkyGeoCacheJunky
263
263
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
add a comment |
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
Sadly, no. In step 6 when I press Enter the boot process begins. And continues. And stops only when the windows manager displays the GUI log in screen. So I never get to step 7. Question: Once I hit Enter in step 6, do I need to hold Shift or Esc again to get the boot to stop?
– Karl Baker
Mar 28 at 4:26
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
see screenshots of the steps I took added to my original post.
– Karl Baker
Mar 28 at 4:57
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1129259%2freset-owner-password-on-ubuntu-18-04-single-boot-dell-laptop%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Sorry but it's not very clear where is the issue. What is happening when you run passwd <username> ?
– ob2
Mar 27 at 22:12
I never get to run
passwd username>. That screen/prompt never comes up.– Karl Baker
Mar 27 at 22:20
What kind of screen did you have after you pressed on F10?
– ob2
Mar 27 at 23:03
Did you try to just follow Jorge Castro's answer?
– danzel
Mar 28 at 0:25
@danzel, Yes. But I never see the "Recovery Menu" screen. My image of it above is copied from his post.
– Karl Baker
Mar 28 at 1:26