Sunday, 21 June 2015

How to reset or change Ubuntu Root password..

We need to boot into recovery mode to change the password or even if we have forgotten the password. Here's how to do this:

Boot up the computer, and after the BIOS screen has loaded, hold down the left
  • SHIFT key. You will then be prompted by a menu that looks something like this:
enter image description here



Now select
  • Recovery mode using the arrow keys and press 
  • Enter
This menu should pop up..

enter image description here



 Now select:
  • Root using the arrow keys again to move the highlighted line and press 
  • Enter At this point you should see a root prompt which reads:
  • root@ubuntu:~# The file system will be read only so we have to re–mount it with write permissions. So type this into the prompt:
  • mount -rw -o remount Now we use the passwrd command but we have to select the user. Say our user is called dave72, then we type this:
  • root@ubuntu:~# passwrd dave72 Now we have selected the user and now we choose a password to enter. Say the password is 1234 then type:
  • Enter new UNIX password: 1234
  • Retype new UNIX password: 1234
  • Passwrd: password updated successfully
  • root@ubuntu:~#
 BTW, the command passwrd is spelled like that to distinguish it as a command rather than a word. Now simply reboot the computer and you're done.


...

No comments:

Post a Comment