Recover Forgotten Ubuntu 11.04 Password

Discussion in 'Linux Virtual Machine' started by rekent, Mar 28, 2012.

  1. rekent

    rekent Bit poster

    Messages:
    2
    I forgot my password for Ubuntu 11.04 installed under Parallels 7 on a Mac. How can I get it back? I have read things about the Grub menu in Ubuntu but can not seem to access it.

    Thanks for any and all help!
     
  2. DerickQ

    DerickQ Bit poster

    Messages:
    3
    You could boot an alternate medium, e.g. a LiveCD. Open up a shell and mount the root FS. Edit /etc/shadow and remove the password. Save, sync, reboot. There shouldn't be a root password now. Alternatively, boot as you would normally and exec: "sudo passwd root" (enter your sudo password/passphrase), then type new password for root without needing the old one. The latter assumes of course, that your normal user has sudo privileges as apropos.
     

Share This Page