- How to Reset a Forgotten Root Password in Linux Mint
- If You Appreciate What We Do Here On TecMint, You Should Consider:
- Related Posts
- 29 thoughts on “How to Reset a Forgotten Root Password in Linux Mint”
- Got something to say? Join the discussion. Cancel reply
- Thread: Linux Mint root password for live session?
- Linux Mint root password for live session?
- Re: Linux Mint root password for live session?
- Re: Linux Mint root password for live session?
- Re: Linux Mint root password for live session?
- Re: Linux Mint root password for live session?
- Re: Linux Mint root password for live session?
- Re: Linux Mint root password for live session?
- What is linux mint root password
- Как получить root на папке?
- Как получить root на папке?
- Как получить root на папке?
- Пароль root
- Пароль root
- Пароль root
How to Reset a Forgotten Root Password in Linux Mint
It’s not unusual for users to forget their root passwords. It’s a common occurrence especially if you haven’t logged in as the root user for a long period of time. It can happen to the best of us. But don’t worry. In this guide, we will walk you through how you can reset a forgotten root password in Linux Mint.
To get started, power on or reboot your Linux Mint system. After a few seconds, you should get a grub menu on the screen as shown below.
Linux Mint Grub Menu
On the first highlighted option, press ‘e’ on the keyboard to edit the grub parameters. You should get the screen shown below.
Linux Mint Grub Parameters
Next, scroll down using the arrow down cursor key until you get to the line beginning with ‘linux’ . Navigate until you get to the ro quiet splash section and add rw init=/bin/bash .
Change Linux Mint Grub Parameter
Then press ctrl + x or hit F10 to boot into a single-user mode as shown below.
Linux Mint Single-User Mode
To reset the forgotten root password in Linux Mint, simply run the passwd root command as shown.
Specify the new root password and confirm it. If the password matches, you should get a ‘password updated successfully‘ notification.
Reset Root Password in Linux Mint
And finally, press Ctrl + Alt + Del to exit and reboot Linux Mint. You can now log in as the root user using the newly created password. And that’s how you can reset a forgotten root password om Linux Mint.
If You Appreciate What We Do Here On TecMint, You Should Consider:
TecMint is the fastest growing and most trusted community site for any kind of Linux Articles, Guides and Books on the web. Millions of people visit TecMint! to search or browse the thousands of published articles available FREELY to all.
If you like what you are reading, please consider buying us a coffee ( or 2 ) as a token of appreciation.
We are thankful for your never ending support.
Related Posts
29 thoughts on “How to Reset a Forgotten Root Password in Linux Mint”
It’s not working in Linux Mint 19.2.
Does not work in Linux Mint LMDE.
Thank you very much I won’t have done it without you.
Do not need to reboot just type:
After sudo su type your user’s password to enter super user then try the procedure on it.
Works on my Linux mint 19.3 cinnamon 🙂
Way to go Quantro !
sudo passwd root works in some cases in the single-line command given.
If the system’s superuser and other system users are the same people, passwords for superuser and regular username with restricted permissions are different in both users.
I was resetting the root password on my Linux Mint 20.1 Ulyssa 64-bit version earlier last month with a single-line comment
I think it worked very well.
Before I used Ubuntu variant Lubuntu 14 on my second Linux laptop brand new in the year 2005 and there was the solution by mounting your hard drive with reading and writing permissions before changing the password command in Recovery mode but like in this James Kiarie great blog post article, you have to reboot your system holding SHIFT-key.
It’s not necessary anymore for Mint users’ to reboot the whole system I think nowadays.
This option and possibility to reset admin’s and superusers passwords in Ubuntu and Mint make it there’s no way to use Mint or Ubuntu system in industrial use due to security issues what makes sense when Linux/Unix System Administration comes to industrial zone (For ie. Small company’s server for it needs excluding traffic outside of office’s IT Infra).
Does not quite work in Linux Mint 20 in single-user mode,
The solution, after doing: passwd root
do passwd your username
with your username (no caps) I suggest you set both the same password.
I have an added problem it says I was successful at changing my password but it still doesn’t work to log in. Is there a way to eliminate the password? I have not been able to get into my computer for a while now.
Running Linux Mint 20 updated on 1/1/2021 in single-user mode requiring entry of user password. Followed your instructions exactly and everything went as described. Entered and confirmed a new password and got “Password Successfully Changed”.
Used F10 key to continued booting. Got Enter the Password login screen and entered the new password. It said “the wrong password” I tried the new password several times and still got “the wrong password” — So I entered the OLD password and log-in proceeded as normal. Did several reboots including one from the power-down state — no luck. The new password is not recognized by the OLD password is.
So, as of January 1, 2021, the Grub modification of the root password does not seem to work. There is only one user on the system, so unless I don’t understand something the root password should be the Username password, right?
I have tried everything possible to change the login password on my laptop, with no results. I’m using Linux mint 19.3 cinnamon. Any suggestions out there!!
Thank you so much. Problem solved, thanks to your article.
You are very much welcome,
Got something to say? Join the discussion. Cancel reply
This site uses Akismet to reduce spam. Learn how your comment data is processed.
Источник
Thread: Linux Mint root password for live session?
Thread Tools
Display
Linux Mint root password for live session?
Today, Is my terrible day with Linux Mint . respectively. I cannot boot to any OS except using live session of Linux Mint that prompted for login that I never do! I’m trying to install linux mint this morning and everything went so bad..my purpose is to succeed in making booatble USB (worked) but FAILED when installing the OS. Do any of you know what is root password for linux mint qiana or alternative to pass the login menu. I really sad..so sad..and I will never to try change os other than Ubuntu Distributions. respectively.
* i really need help asap :'(
Re: Linux Mint root password for live session?
Mint is just like Ubuntu and has no root account, therefore no root password; it uses sudo command with your user password, which assumes that you as a user are a member of the sudo group, which the first user made during installation will be by default.
This also assumes that the iso file you used was a good one, and the install medium (USB) was not corrupt in any way.
Re: Linux Mint root password for live session?
If the live Mint session is prompting you for login credentials, then you likely have a bad burn or a bad ISO.
If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to — unsolicited PMs concerning forum accounts will be ignored.
Re: Linux Mint root password for live session?
i think the password should be blank/null/empty/void
Re: Linux Mint root password for live session?
All method not worked. my tecnique to solv this-
— Borrow friend’s laptop
— Download Ubuntu’s .iso and install to USB
— Boot and install Ubuntu
* It took a day just for finding root password.
Re: Linux Mint root password for live session?
Mint’s live session boots directly to the desktop. No password requested or required. Nor does use of ‘sudo’ require a password in a live session.
Re: Linux Mint root password for live session?
@InterProg, please take heed of buzzingrobot’s post. What buzzingrobot has said is true of Mint, Ubuntu and the Ubuntu flavours, such as Xubuntu and Lubuntu. Your posted «solution» was not a true solution, merely an avoidance of the problem that you encountered with the Mint USB. As stated before, you probably had a corrupted ISO or a corrupted USB.
And I’m sure you’ve been told this before: Don’t bother with the root account or setting a password for it in either Mint or Ubuntu. Instead have a read of this wiki page: https://help.ubuntu.com/community/RootSudo . You need to understand it.
If you need help with your forum account, such as SSO login issues, username changes, etc, the correct place to contact an admin is here. Please do not PM me about these matters unless you have been asked to — unsolicited PMs concerning forum accounts will be ignored.
Источник
What is linux mint root password
Как получить root на папке?
16 дек 2017, 15:31
Как получить root на папке?
16 дек 2017, 15:58
Как получить root на папке?
16 дек 2017, 16:50
Пароль root
16 дек 2017, 17:04
Пароль root
16 дек 2017, 20:54
Пароль root
16 дек 2017, 21:30
ну откудаж знать-то что вы сделали не так. из того что вы написали мало чего понятного.
>Я назначил второго пользователя. Он у меня админ. Правильно?
если вы при создании второго аккаунта устанавливали тпи учётной записи Администратор , да ещё проверили назначения прав и привелегий в Дополнительных параметрах и проверили настройки групп — то правильно. Если не назначили ему тип учётной записи Администратор — то неправильно.
>То есть я под своей учёткой «совсем никто»
Если после назначения администратором второго пользователя вы сменили тип своей учётной записи на Пользователь (а до этого был Администратор ) , то ДА, «совсем никто»
Если не меняли, то должны были остаться вторым Администратором.
У мну , к примеру , 2 аккаунта и оба администраторы. При запросе рутовых прав по судл могу выбирать от какого аккаунта и с его паролем выполнить команду по судо . Есть ещё варианты ,но . в общем пропустим их
Если правильно понял , то у вас команды и программы с рутовыми правами по судо не выполняются от вашей учётки с её паролем, пароль для созданной второй учётки которую назначили админом вы забыли и есть необходимость переназначить пароль для админской учётки
В принципе это не так и сложно при физическом доступе к ПК
1-й вариант
Загрузитесь в систему в консольном режиме с опцией rw init=/bin/bash
далее с помощью команды # passwd (ник вашей админской второй учётки) назначайте ей пароль
.
далее reboot и пробуйте что получилось
если не сработает такое назначение , например, ввиду того что второй ваш пользователь не был назначен админом, то повторите вход в систему в консольном режиме с опцией rw init=/bin/bash и с помощью команды # passwd root назначте пароль суперпользователю , перегрузитесь в обычном режиме и пробуйте настроить свои аккауты пользователей
после настройки нормального админа из пользовательских аккаунтов рекомендую отключить пароль root
команда для этого # passwd root -l
Источник