Re: Reset root password

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rahul Sundaram wrote:
> Mikkel L. Ellertson wrote:
>> Rahul Sundaram wrote:
>>> Hi
>>>
>>> If anybody can add the steps to reset if the boot loader is password
>>> protected as well, feel free to do so.
>>>
>>> https://fedoraproject.org/wiki/Reset_Forgotten_Root_Password
>>>
>>> Rahul
>>>
>> It needs to be fleshed out, but for a password protested boot
>> loader, you can do it as long as you can boot from a CD/DVD. Boot
>> the install media in the rescue mode, chroot to the mounted root
>> file system, and run passwd to change the root password. (You can
>> probably grab most of the text from an explanation on how to
>> re-install Grub.)
>>
>> I am not sure how the rescue mode handles an encrypted file system.
>> Will it mount one if you supply the password?
> 
> If you want to help, do test and document the method that works.
> 
> Rahul
> 
Well, I can not edit it directly, but here is the text for an
un-encrypted file system. I hope to have time to create a virtual
machine with an encrypted file system sometime this week.

============================================================

Boot the install CD/DVD
Select "Rescue installed system"
Answer the prompts for language and keyboard.
Starting the network is optional and probably not needed.
Let the rescue mode mount your file systems in the r/w mode.
Hit enter to get the shell prompt.

sh-3.2# chroot /mnt/sysimage (Change to your disk file system.)
sh-3.2# passwd               (Change the root password.)
sh-3.2# exit                 (Exit the chroot environment.)
sh-3.2# exit                 (Exit the rescue mode.)

The system will now unmount the file systems and reboot.

============================================================

Mikkel
-- 

  Do not meddle in the affairs of dragons,
for thou art crunchy and taste good with Ketchup!

-- 
fedora-docs-list mailing list
fedora-docs-list@xxxxxxxxxx
To unsubscribe: 
https://www.redhat.com/mailman/listinfo/fedora-docs-list

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux