I can't believe I did this! I need to enter my root password to get updates -- my user password doesn't work. I must have set it to something else and I don't remember what, It was only a couple of weeks ago, I'm a new user. Shame on me! I've researched the problem, it looks like I'll have to edit one of the grubs to reset it. How can I do this?
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason:Topic automatically closed 6 months after creation. New replies are no longer allowed.
howardballinger wrote:I can't believe I did this! I need to enter my root password to get updates -- my user password doesn't work. I must have set it to something else and I don't remember what, It was only a couple of weeks ago, I'm a new user. Shame on me! I've researched the problem, it looks like I'll have to edit one of the grubs to reset it. How can I do this?
...
My suggestion is to find out why you can't use your password to get updates. You really shouldn't be running as root to do that.
Check Users and Groups and see if your username is in the 'sudo' group.
If you can't remember your user's password, you can set a new one.
Boot the computer and select your Mint OS in the Grub menu, but do not press ENTER - instead press e (for EDIT).
Arrow down to the line that starts with "linux"
It will look something like this: linux /boot/vmlinuz-3.16.0-38-generic root=UUID=b1bde976-50e2-4c32-a760-17b091b4202f ro quiet splash $vt_handoff
Go to the end of that line. Delete the words "quiet splash $vt_handoff" if that is there, and put: systemd.unit=multi-user.target
Then press F10 to boot. That will boot to a root shell.
Enter: passwd yourusername (whatever your user name is...)
Press Enter. It will request the new password (twice).
Note: when you type your new password, it will not display on the screen (for security reasons).
When complete, press Ctrl+Alt+Delete to reboot.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI Linux Linx 2018
"Linux Mint 18.3 Sylvia... I'm a new user." From the top then...
o Administrator actions are authorised using sudo and your normal log-in password. If you can't use Update Manager, it's not a problem with knowing or having a password for the root account. If the following command prints OKAY there's not a lot wrong... sudo echo OKAY
o Freshly installed Sylvia doesn't have a root password. If you set one, that's your option, but forgetting it won't affect the normal operation of Mint. If your primary account sudo privilege is intact, you can delete-and-lock the root account password back to the default Mint state without knowing what it was... sudo passwd -dl root
o If a user has an encrypted home folder, fiddling with their password using root-privileges is 'unwise'. You can change the log-in password, but that doesn't update the keyring. That user loses access to their encrypted data until the password is changed back. If any user 'forgets' the password for something encrypted, that data is lost beyond hope of recovery until the correct password is used, by remembering it, or by repeated guessing.
Thanks to all, I'm just getting time to try some of those approaches today.
It's not about my user password, I know that. It's the root password.
And sudo commands fail -- the screen asks for my password, and doesn't accept my user password ... apparently what it needs is my root password, and the problem in the first place is to find out what my root pw actually is! screenshot attached.
The Update Manager when I hit "Install updates" says "Authentication as superuser is required to perform this action. Password for root : ___________". And Users and Groups says the same thing.
And Frank, I didn't change my user login once I set it up during install
I think I really do need to set a new root password somehow. How can I do that?
howardballinger wrote:
...
And sudo commands fail...
The Update Manager when I hit "Install updates" says "Authentication as superuser is required to perform this action. Password for root : ___________". And Users and Groups says the same thing.
I have a feeling that your user account is not in the sudo group.
howardballinger wrote:I think I really do need to set a new root password somehow.
No, what you really need to do is determine whether you're in the sudo group and, if not, fix that. If you created a root password, what you should do is restore the default, which is not to have one. Mute Ant told you how to do this above. In Terminal, run sudo passwd -dl root.
Hi all, I have the same exact issue as the OP right after installing v19. Never set a root passwd but it asks for it for all installations. This is what I get per your suggestions:
lm19-home@lm19home-Inspiron-5559:~$ sudo echo OKAY
[sudo] password for lm19-home:
Sorry, user lm19-home is not allowed to execute '/bin/echo OKAY' as root on lm19home-Inspiron-5559.
lm19-home@lm19home-Inspiron-5559:~$ sudo passwd -dl root
[sudo] password for lm19-home:
Sorry, user lm19-home is not allowed to execute '/usr/bin/passwd -dl root' as root on lm19home-Inspiron-5559.
lm19-home@lm19home-Inspiron-5559:~$ id
uid=1000(lm19-home) gid=1000(lm19-home) groups=1000(lm19-home),4(adm),24(cdrom),30(dip),46(plugdev),115(lpadmin),127(sambashare)
paul_k wrote: ⤴Sun Oct 21, 2018 12:41 am
Hi all, I have the same exact issue as the OP right after installing v19. Never set a root passwd but it asks for it for all installations.
No, it really doesn't. It prompts you to set up a user password. You might want to read Mute Ant's post above again.
If your issue is solved, kindly indicate that by editing the first post in the topic, and adding [SOLVED] to the title. Thanks!
You can use the instructions I gave previously - viewtopic.php?p=1542069#p1417543
to set a user (administrative) password for user lm19-home
You might then, after that, have to make sure that user lm19-home is a member of the sudo group.
Mint 18.2 Cinnamon, Quad core AMD A8-3870 with Radeon HD Graphics 6550D, 8GB DDR3, Ralink RT2561/RT61 802.11g PCI Linux Linx 2018
austin.texas wrote: ⤴Fri Jan 19, 2018 2:39 pm
If you can't remember your user's password, you can set a new one.
Boot the computer and select your Mint OS in the Grub menu, but do not press ENTER - instead press e (for EDIT).
Arrow down to the line that starts with "linux"
It will look something like this: linux /boot/vmlinuz-3.16.0-38-generic root=UUID=b1bde976-50e2-4c32-a760-17b091b4202f ro quiet splash $vt_handoff
Go to the end of that line. Delete the words "quiet splash $vt_handoff" if that is there, and put: systemd.unit=multi-user.target
Then press F10 to boot. That will boot to a root shell.
Enter: passwd yourusername (whatever your user name is...)
Press Enter. It will request the new password (twice).
Note: when you type your new password, it will not display on the screen (for security reasons).
When complete, press Ctrl+Alt+Delete to reboot.
So in essence, you can set the root password by using this method and then at any terminal after rebooting, you can just use $ su - to drop into a root shell and not have to deal with that annoying sudo business. Gonna have to give that a try.