@Motobaridi's solution, doesn't it mean that you can access any *nix machine that boots "normally" as long as you have physical access to it?
Motobaridi's option works all the time. Well, almost all. Had a
problem with a machine with pam authentication and the pam was broken.
Dependency problem ... it was not funny
On 8/24/09, George Njoroge <themburu@gmail.com> wrote:
> Hey go with motobaridi option, I always use it to recover/reset root passwd
> for my client servers (ie if I had forgotten them).
> Though smt else not mentioned here,u had said u even forgot ur username. Ok
> easy once in root you can just list home directory and u shall see the users
> ie ls /home/ . There you shall see the users. Reset all as you see fit. But
> as warned remember you are full root.
> Cram this trick as it will save and come in handy when you administer all
> servers.
> Cheerz
> Themburu
>
> 2009/8/24 Odhiambo ワシントン <odhiambo@gmail.com>
>
>>
>> On Mon, Aug 24, 2009 at 4:05 PM, MotoBaridi <motobaridi@gmail.com> wrote:
>>
>>> 1: Turn your computer on.
>>> 2. Press ESC at the grub prompt.
>>> 3. Press e for edit.
>>> 4. Highlight the line that begins kernel ........., press e
>>> 5. Go to the very end of the line, add rw init=/bin/bash
>>> 6. press enter, then press b to boot your system.
>>> 7. Your system will boot up to a passwordless root shell.*
>>> *CAUTION: This is a FULL ROOT SHELL! You can damage your system if not
>>> careful!
>>> 8. Type in passwd <username>. Set your password.
>>> 9. Type in reboot.
>>> MOST IMPORTANTLY
>>> 10. Try not to forget your password again
>>
>>
>> So long, but more like what we have on *BSD.
>>
>> --
>> Best regards,
>> Odhiambo WASHINGTON,
>> Nairobi,KE
>> +254733744121/+254722743223
>> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
>> "If you have nothing good to say about someone, just shut up!."
>> -- Lucky Dube
>>
>> _______________________________________________
>> Skunkworks mailing list
>> Skunkworks@lists.my.co.ke
>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
>> Other services @ http://my.co.ke
>> Other lists
>> -------------
>> Announce:
>> http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
>> Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
>> kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general
>>
>
>
>
> --
> Conservatism is the adherence to the old tried against the new untried.
>
_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
Other services @ http://my.co.ke
Other lists
-------------
Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
Science: http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
kazi: http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general