LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Forgot my password (https://www.linuxquestions.org/questions/linux-newbie-8/forgot-my-password-4175603247/)

Safeway44 04-05-2017 07:41 AM

Forgot my password
 
My password seems to be incorrect. Is there a way to reset it? I'm using latest Kali with CD.

wpeckham 04-05-2017 07:44 AM

Quote:

Originally Posted by Safeway44 (Post 5692919)
My password seems to be incorrect. Is there a way to reset it? I'm using latest Kali with CD.

Several ways. What have you tried?

TheBigMing 04-06-2017 04:48 PM

I had a similar problem and found the answer here:

https://madalanarayana.wordpress.com...very-in-linux/

It does require the use of the command line, but it is an excellent, full, clear & easy to follow exposition.

Good luck!

dmk

Addendum

Quote:

Originally Posted by TheBigMing
I had a similar problem and found the answer here:
[url]https://madalanarayana.wordpress.com...very-in-linux/

It does require the use of the command line,
Not able to get to the command line though.

to which Safeway44 replied:

Quote:

Article says after Grub screen:
"press ‘e’ here now you should be seeing three lines, the second line is the kernel line"
I press e and see a list and then:
Grub>
A Grub prompt which allows me to type anything after Grub>
Sorry, that's my fault. I should have specified the use of "chroot" which which forms the second part of the article:(

dmk

stanvan 04-06-2017 06:06 PM

Quote:

Originally Posted by Safeway44 (Post 5692919)
My password seems to be incorrect. Is there a way to reset it? I'm using latest Kali with CD.

If you are running Kali from the CD, the default password is toor.

Safeway44 04-06-2017 07:27 PM

Quote:

Originally Posted by stanvan (Post 5693588)
If you are running Kali from the CD, the default password is toor.

I've actually installed it on hard drive. During install it asked me to type a password so I'm assuming that is the password. I did write it down during this, and also was able to see what I was typing in the password box during the install. Odd.

Safeway44 04-06-2017 07:33 PM

Quote:

Originally Posted by TheBigMing (Post 5693576)
I had a similar problem and found the answer here:
https://madalanarayana.wordpress.com...very-in-linux/

It does require the use of the command line,

Not able to get to the command line though.

Article says after Grub screen:
"press ‘e’ here now you should be seeing three lines, the second line is the kernel line"
I press e and see a list and then:
Grub>
A Grub prompt which allows me to type anything after Grub>

BTW I don't see Kali (recovery mode) to choose from either.

Safeway44 04-06-2017 07:38 PM

Quote:

Originally Posted by wpeckham (Post 5692921)
Several ways. What have you tried?

I made an attempt with this:
http://www.geekyshows.com/2013/06/ho...nux-login.html

But I didn't see what they see. In others words I didn't see a Terminal for me to type command prompts in black
No Kali recovery mode to choose from, I pressed e and got a prompt like this:
Grub>
I'm able to type after Grub>
Grub> is all in blue backdrop, not black like Terminal in the link above.

Safeway44 04-06-2017 07:38 PM

Should I just delete the partition's and start new install again. How do I do that correctly if you think I should that is?

r3sistance 04-06-2017 07:41 PM

since it sounds like you have a live CD, just boot up the live CD, mount the filing system from the hard drive and chroot to the mounted hard drive, you should now be able to run passwd command as root. Afraid a bit too late in the night for me to give clearer instructions than that.

Alternatively on Grub, you can try to boot single user mode or initialize into a shell, both of those would should give the ability to reset it too.

Jjanel 04-07-2017 12:40 AM

Here's 'the answer' that I was reluctant to reveal after #2;)
(I even 'feared':eek: revealing the 'secret' *web-research* terms: rw init=/bin/sh)

In #6, you likely -wrongly- typed a 'c' to get grub> prompt.
As punishment:D please study: http://gnu.org/software/grub/manual/...html#Interface
(or you can substitute the web-search that I used to find it: grub prompt manual)

Let us know, per (my favorite LQhowTo): http://linuxquestions.org/questions/...ml#post5669556

ondoho 04-07-2017 11:45 AM

judging from all those blog posts, it seems that kali users forgetting their passwords is a rather common occurence :D

Emerson 04-07-2017 11:58 AM

The funny part is they need to search help with a trivial problem like this.

273 04-07-2017 12:26 PM

Quote:

Originally Posted by Emerson (Post 5693904)
The funny part is they need to search help with a trivial problem like this.

Mr Robot never forgets his password!

Safeway44 04-07-2017 05:09 PM

Quote:

Originally Posted by Jjanel (Post 5693703)
In #6, you likely -wrongly- typed a 'c' to get grub> prompt.

Typed correctly this time and solved,thanks.

Jjanel 04-08-2017 04:46 AM

Cool! I'm glad you were 'thick skinned' to comments ;)
Please use ThreadTools at top, to mark this as 'Solved'
(esp for future searchers!)


All times are GMT -5. The time now is 03:38 AM.