I forgot my main/only/sudo Mint password (MATE 13)

Questions about applications and software
Forum rules
Before you post please read how to get help
User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

I forgot my main/only/sudo Mint password (MATE 13)

Postby pepperminty » Thu Nov 22, 2012 6:51 pm

Hello,

I have been away from my Linux Mint OS for some time and forgot the password. I am the the only user of the Linux Mint. I have the sudo/admin access. I remember the username.

How can I reset the password?

I'm using Linux Mint 13 MATE. Thank you.

User avatar
karlchen
Level 16
Level 16
Posts: 6573
Joined: Sat Dec 31, 2011 7:21 am

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby karlchen » Fri Nov 23, 2012 8:33 pm

Hello, pepperminty.

How about following psychocat's advice on How to reset your password in Ubuntu?

Kind regards,
Karl
Image

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby pepperminty » Tue Jan 15, 2013 1:28 am

Karl

I am stuck. Psychocat's advice does not include what I am facing. In the recovery menu I chose Root. But now I get this message: give root password for maintenance.

I do not know my root password. I do not know any password. I forgot them all.

User avatar
TheDynamicHamza21
Level 5
Level 5
Posts: 795
Joined: Thu Oct 04, 2012 7:24 pm
Location: California
Contact:

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby TheDynamicHamza21 » Tue Jan 15, 2013 3:47 am

pepperminty wrote:Hello,

I have been away from my Linux Mint OS for some time and forgot the password. I am the the only user of the Linux Mint. I have the sudo/admin access. I remember the username.

How can I reset the password?

I'm using Linux Mint 13 MATE. Thank you.


Try this
http://community.linuxmint.com/tutorial/view/339


Reset Password:
viewtopic.php?f=46&t=112077
http://community.linuxmint.com/tutorial/view/851
viewtopic.php?f=46&t=120157
Linux Registered User: # 573034

www.domeshotsandfatlaces.com

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

The Community Page for resetting main passwords doesn't help

Postby pepperminty » Tue Jan 15, 2013 6:09 am

TheDynamicHamza21 wrote:Try this
http://community.linuxmint.com/tutorial/view/339

Sad to say that it didn't solve my problem.

I got to step 4 [Press e for edit] with ease.
Step 5 is impossible, because there was no line that began with "kernel". Instead, I chose "LinuxMint, with Linux 3.2.0-23-generic (recovery mode)".
Here were my options: Image

Here is what the "editor" had before I made any changes.
Image

And then I added one line at the end:
rw init=/bin/bash

Image

Step 6
When I tried to boot the edited stuff, I got this:
Image
It says
Booting a command list

Loading Linux 3.2.0-23-generic ...
Error: unknown command `rw'.

Press any key to continue...



Anyone, please help.

User avatar
TheDynamicHamza21
Level 5
Level 5
Posts: 795
Joined: Thu Oct 04, 2012 7:24 pm
Location: California
Contact:

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby TheDynamicHamza21 » Fri Jan 18, 2013 2:52 am

I believe you were supposed to add rw init=/bin/bash to ro recovery nomodeset.
Image

like this

ro recovery nomodeset rw init=/bin/bash
Linux Registered User: # 573034

www.domeshotsandfatlaces.com

wayne128
Level 10
Level 10
Posts: 3420
Joined: Tue Jul 13, 2010 12:15 am

Re: The Community Page for resetting main passwords doesn't

Postby wayne128 » Fri Jan 18, 2013 3:44 am

pepperminty wrote:Step 5 is impossible, because there was no line that began with "kernel".


@pepperminty,
you are very close...
here is just explanation,
if you use grub legacy, then, it boots from kernel line that start with the word kernel
since now you boot with grub2, the kernel line has the word linux.....

so you are supposed to scroll to the linux line, move cursor untill the end of the line
and type the command
rw init=/bin/bash

then ctrl-x or F10 to boot,

when it boots up, the console will look like this

(none) /#

your next step is to list your home directory (ls /home) to find your last login name

Code: Select all

ls /home


terminal will show
your_name

next step is to type after the #

Code: Select all

passwd your_name


and enter your new password twice when prompted.

if all is well, reboot and use new password.
hope it helps


ps, capture mine to show you where exactly to type

this are the lines
the one you need to use is highlighted in RED
insmod gzio
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos6)'
search --no-floppy --fs-uuid --set=root be31f4b1-ceb1-4f3a-a59a-73e96f5497a9
echo 'Loading Linux 3.7.0-2.dmz.1-liquorix-686 ...'
linux /boot/vmlinuz-3.7.0-2.dmz.1-liquorix-686 root=UUID=be31f4b1-ceb1-4f3a-a59a-73e96f5497a9 ro quiet splash
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.7.0-2.dmz.1-liquorix-686



move cursor to RED line, type in, so the line look likes

linux /boot/vmlinuz-3.7.0-2.dmz.1-liquorix-686 root=UUID=be31f4b1-ceb1-4f3a-a59a-73e96f5497a9 ro quiet splash rw init=/bin/bash
Last edited by wayne128 on Sat May 31, 2014 8:26 pm, edited 1 time in total.

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

Stuck with step 1 of waye128's advice

Postby pepperminty » Sat Jan 19, 2013 3:28 am

wayne128 wrote:so you are supposed to scroll to the linux line, move cursor untill the end of the line
and type the command
rw init=/bin/bash

OK, I did as you said.
Here's how my GRUB text looks after implementing your advice:
http://i.imgur.com/8xRJc2K.jpg.

wayne128 wrote:then ctrl-x or f10 to boot,
when it boots up, the console will look like this
(none) /#


Sadly, not for me. This is what I see after I press f10:
http://i.imgur.com/BA6Vsgu.jpg

User avatar
TheDynamicHamza21
Level 5
Level 5
Posts: 795
Joined: Thu Oct 04, 2012 7:24 pm
Location: California
Contact:

Re: Stuck with step 1 of waye128's advice

Postby TheDynamicHamza21 » Sat Jan 19, 2013 5:44 am

pepperminty wrote:Here's how my GRUB text looks after implementing your advice:
http://i.imgur.com/8xRJc2K.jpg.




It's misspelled you have rw init=bin/bash you forgot the / before bin like this :

rw init=/bin/bash
Linux Registered User: # 573034

www.domeshotsandfatlaces.com

cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby cwsnyder » Sat Jan 19, 2013 6:04 am

I'm sorry one of the above methods didn't work for you.

This method works, but requires another Linux system, either a Live Linux medium, either your Mint install medium, Knoppix, Slitaz, Puppy Linux, or similar on CD/DVD or USB key, whichever will boot on your computer, or another Linux install on your system.
1) Boot into your Live Linux system.
2) Mount your Mint root partition. If you don't see an icon on your desktop, you can open a Terminal instance and type fdisk -l (that is the lower case L) to find the device name for your root partition or open whatever partitioning software is available to you to get that information. It will look something like /dev/sdaX where X is the number of the partition on the hard drive.
3) Still in Terminal, type

Code: Select all

mkdir mint
mount /dev/sda2 mint
sudo chroot mint
passwd <username>
Change /dev/sda2 to point to the partition containing your Mint root partition, of course, and use the <username> of the user which you need to change the password.
4) Type in the new password twice as prompted.
5) Use exit or Ctrl-D key combination to exit chroot and then the terminal.
6) Reboot and use the newly assigned password.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

stuck after adding rw init=/bin/bash

Postby pepperminty » Wed Jan 23, 2013 9:21 am

Dear all,

Thanks to TheDynamicHamza21 for catching my typo. Now, I made sure I had

Code: Select all

rw init=/bin/bash

So now my Grub looks like this:
http://i.imgur.com/lKBPmiz.jpg

I press F10 and I get this:
http://i.imgur.com/iuoLWES.jpg

And my Caps Lock LED light is blinking. I did a hard power off on the computer to restart the computer.

Please help.

wayne128
Level 10
Level 10
Posts: 3420
Joined: Tue Jul 13, 2010 12:15 am

Re: stuck after adding rw init=/bin/bash

Postby wayne128 » Wed Jan 23, 2013 8:58 pm

pepperminty wrote:
I press F10 and I get this:
http://i.imgur.com/iuoLWES.jpg

And my Caps Lock LED light is blinking. I did a hard power off on the computer to restart the computer.

Please help.


Well, too bad, you had kernel panic. :twisted:
If that repeat, then, sorry, a reinstall would be necessary

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

Using another Linux system

Postby pepperminty » Wed May 15, 2013 2:07 am

cwsnyder wrote:I'm sorry one of the above methods didn't work for you.

This method works, but requires another Linux system, either a Live Linux medium, either your Mint install medium, Knoppix, Slitaz, Puppy Linux, or similar on CD/DVD or USB key, whichever will boot on your computer, or another Linux install on your system.
1) Boot into your Live Linux system.
2) Mount your Mint root partition. If you don't see an icon on your desktop, you can open a Terminal instance and type fdisk -l (that is the lower case L) to find the device name for your root partition or open whatever partitioning software is available to you to get that information. It will look something like /dev/sdaX where X is the number of the partition on the hard drive.
3) Still in Terminal, type

Code: Select all

mkdir mint
mount /dev/sda2 mint
sudo chroot mint
passwd <username>
Change /dev/sda2 to point to the partition containing your Mint root partition, of course, and use the <username> of the user which you need to change the password.
4) Type in the new password twice as prompted.
5) Use exit or Ctrl-D key combination to exit chroot and then the terminal.
6) Reboot and use the newly assigned password.


Dear cwsynder, or anybody who knows,
Will the above method work with an encrypted file volume? During the installation of Linux Mint 13, it asked whether I wanted to encrypt the file volume, and I chose "Yes."

cwsnyder
Level 6
Level 6
Posts: 1242
Joined: Wed Oct 20, 2010 6:49 am
Location: Nappanee, IN, USA

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby cwsnyder » Sat May 18, 2013 7:01 pm

You will have to ensure that you have the encryptfs support installed and that you know the password you assigned. Otherwise . . . probably not.
LMDE Mate 64-bit, LM17.3 Cinnamon 64-bit
Debian Mate 64-bit, Xubuntu xenial 64-bit, Ubuntu-Mate 14.04 64-bit, Antergos Xfce 64-bit, PCLinuxOS Mate 64-bit

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby pepperminty » Sat May 18, 2013 7:03 pm

cwsnyder wrote:You will have to ensure that you have the encryptfs support installed and that you know the password you assigned. Otherwise . . . probably not.

No, I don't remember the password. If I did, I wouldn't have created this thread.

CalebW
Level 1
Level 1
Posts: 15
Joined: Fri Sep 14, 2012 8:13 pm

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby CalebW » Wed May 22, 2013 9:30 pm

cwsnyder wrote:

Code: Select all

mkdir mint
mount /dev/sda2 mint
sudo chroot mint
passwd <username>


The above instructions should work because when you installed linux and it asked if you wanted to encrypt your "home" folder, it doesn't encrypt everything else.

Alternatly you can boot a live cd, mount your partition, open /(wherver you mounted your partition)/etc/shadow in a text editor, and look for your
username. When you find it, it will look something like this.

Code: Select all

caleb:$6$G38q2krH$Oj5.F6agZhabI..INOSZ8Qkk/9hpr9xBkhj/TK2KmTFijXh.nqCjFQtjdaEAk$jdaEAkLRqTRDl8kZHBFXAt/TbRuFHD0:15846:0:99999:7:::


What you need to worry about is the long string of test between the two colons right after your username, that is your password hash, it will be different from mine. What you need to do is delete the password hash it so it looks like this.

Code: Select all

caleb::15846:0:99999:7:::


Now you will be able to log in to your computer and then just change your password.

User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

Re: I forgot my main/only/sudo Mint password (MATE 13)

Postby pepperminty » Wed May 22, 2013 9:55 pm

CalebW wrote:
cwsnyder wrote:

Code: Select all

mkdir mint
mount /dev/sda2 mint
sudo chroot mint
passwd <username>


The above instructions should work because when you installed linux and it asked if you wanted to encrypt your "home" folder, it doesn't encrypt everything else.


Dear CalebW, cwsynder, and others,

Where (At what stage of bootup) do I enter those commands?

UPDATE: Looking at viewtopic.php?f=47&t=117601&p=721840#p675871, I think the answer to my own question is "Using a live Linux system". So I'll go ahead and put a live Linux distro onto USB and try cwsynder's instructions. I'll post back with results.



User avatar
pepperminty
Level 4
Level 4
Posts: 264
Joined: Thu Jun 23, 2011 10:51 pm

Solved! Thank you!

Postby pepperminty » Wed May 22, 2013 10:33 pm

CalebW and Cwsnyder,
Thank you for your posts. After many months, the problem is now solved. Cwsnyder, thank you for initially posting your instructions in January 2013. I neglected to try it out until today, when Calebw reminded me of your post. Thanks Calebw for the reminder. It feels good to be back into Linux Mint.


Return to “Software & Applications”

Who is online

Users browsing this forum: Bing [Bot], TooMuchTime and 13 guests