HOWTO:Lost Root Password

From PardusWiki
(Difference between revisions)
Jump to: navigation, search
(New page: While we all know we should always choose a root password that is too difficult to guess, yet easy enough to remember, occasionally you may find yourself sitting at a box and you don't hav...)
 
(Undo revision 3138 by Itycajofa (Talk) Spam.)
 
(One intermediate revision by one user not shown)

Latest revision as of 14:08, 30 November 2010

While we all know we should always choose a root password that is too difficult to guess, yet easy enough to remember, occasionally you may find yourself sitting at a box and you don't have the root password (anymore).

While it is not possible to *retrieve* the password for root, luckily it is possible to *change* it without knowing the current password.


First method

If you can log on as a user who has administrative rights (as asked and recommended during Pardus install), then it is quite easy to change the root-password.

    sudo su

Either the cursor is next to a pound sign (#), or you get a message that you are not in the sudoers list and the cursor is next to a dollar sign ($)

If you see the pound sign, then...

But if still have the dollar sign then head on over the...


Second Method

   You are leaving the graphical boot menu and starting the text mode interface.
   single init=/bin/bash
   (none) / #
   mount -o remount,rw /
   passwd: password changed successfully

When the logon screen appears, log on as a regular user, or, if you don't know that password either, press CTRL+ALT+F1 and log on as root. Then type "passwd <username>" and change the password for the user.


Compliations

In either case press "p" and see if you are then asked for a password. If so, then Grub is password protected and you will need a live-cd to boot from.

Personal tools
Namespaces
Variants
Actions
Navigation
Print/export
Toolbox