Password Reset in Linux

cr9prime

Well-known member
Member
Joined
1 yrs. 8 mth. 12 days
Messages
90
Reaction score
3
Wallet
0$
To interrupt the GRUB boot (first step) while starting the computer, press and hold the SHIFT key - it always works, even on Linux Mint, where the GRUB menu is turned off by default.
Stop the download by holding down the SHIFT key while starting the computer, you will see:

Please, Log in or Register to view URLs content!



Press the " e " key and you will proceed to edit the boot settings:

Please, Log in or Register to view URLs content!



The screen does not contain the line we need, scroll with the cursor keys down and find the line starting with linux :

Please, Log in or Register to view URLs content!



Go to the end of this line, put a space and add:

single init = / bin / bash

It should look like this (the kernel number may be different):

Please, Log in or Register to view URLs content!



When everything is ready, press Ctrl + x or F10 to continue the download with the options installed.
You will see a shell prompt, also note that we are logged in as root , i.e. we have elevated privileges, including the use of the passwd command :

Please, Log in or Register to view URLs content!



Using the passwd command, we change the password, as you can see, the passwd command failed:

Please, Log in or Register to view URLs content!




passwd: Authentication token manipulation
passwd: password unchanged

To understand the cause of the error, enter the command:

mount

Please, Log in or Register to view URLs content!



The ro letters indicate that the file system is mounted read-only, and for this reason, the changes made cannot be saved. Remount the file system:

mount -rw -o remount /

As you can see, after this, the password change was successful:

Please, Log in or Register to view URLs content!



To exit, type:

sync
umount /

and then turn off the power to the computer / restart with a physical button.
 
Paid adv. expire in 2 months
CLICK to buy Advertisement !
westernunion carding Verified & Trusted WesternUnion | MoneyGram | Bank - Transferring [299$ BTC for 2000$ WU]
electronics carding Verified & Trusted Electronics Carding, Carding iPhone, Samsung Carding, MacBook Carding, Laptops Carding
Top Bottom