If you have forgotten the password to log in to your computer account, you can follow the following steps to reset it

  • Restart your computer, and hold down Shift during bootup to get into the Grub menu
  • Press the down arrow and choose Advanced options for Ubuntu

  • Then select recovery mode

  • Now use down arrow key to highlight root and press Enter.



  • The file system is mounted as read-only, so you need to enter the following command to get it to remount as read-write. type mount -o rw,remount /

  • To know your user name type ls /home

  • Now my user name is firoj, to change password type passwd 'username'


    • You will be prompted to enter a new UNIX password, and to confirm the new password
    • Now the password is successfully updated, then type reboot, to reboot the computer.