Monday, April 12, 2010

Re-set Fedora root password

Came across the need to re-set my forgotten root password on my Fedora 11 box. The alarmingly simple solution makes it very evident that physical access to machines is extremely important to safeguard.

I am using GRUB so the trick was to show the choice of kernals it wanted to boot to, choose "e" to edit one of them and add "single" at the end of the kernal boot command, then choose "b" to boot that kernal, it will push you into single mode with root priveleges

type in "passwd" and choose a new root password.

apparently LILO is just as easy; booting with: "linux single" gives you the same result.

No comments:

Post a Comment