Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Let's describe it from the beginning:
I was planning to re-enable the password requirement in LightDM for security reasons. But, since my PC's been sluggish these times, it FC'd the password setup when I was entering and now I can't enter it even with combinatorics. I have followed the tips in the Help page, but with all of them I have issues:

  • I try to enter recovery mode (so that I type passwd and my name and change it), but it is a black screen just like my boot screen (because of nVidia graphic card compatibility issue), then I can't do anything
  • I also tried the editting "shadow" file, but the guide talks about some commas that I just don't see where they are supposed to be.
  • I even tried deletting the keyring file like it's said, but nothing happens (except that I lose the other passwords)

So is there anything I can do to have my password back? (a bonus would be stopping all this sluggish, apps not responding, etc)

share|improve this question

1 Answer 1

In order to use sudo you have to both use your login password and be in the admin group.

If you can not boot to a recovery shell, my advice would be to boot a live CD, mount your root partition, and set a password using chroot.

sudo -i
mount /dev/sdax /mnt # /dev/sdxy is your ubuntu root partition
chroot /mnt /bin/bash
passwd your_user_name

While you are in the chroot, make sure your user is in the admin group. You can do this by editing /etc/groups, add you user at the end of the admin line if needed.

share|improve this answer
    
Okay, Ubuntu 11.10 live CD doesn't have a GUI Terminal except from Alt+F2. Is there any way to access the CLI Terminal from there or some other way to do this? –  Klevin92 Dec 8 '11 at 20:24
2  
Open gnome-terminal –  bodhi.zazen Dec 8 '11 at 21:09
    
@Klevin92 Or use Ctl+Alt+F2. Ctl+Alt+F7 to get back to a GUI. –  hexafraction Aug 21 '12 at 19:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.