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.

Possible Duplicate:
How do I reset a lost administrative password?

I only have the user set up when I installed Ubuntu 12.10. I don't need a password and I want it to log in without prompting for a password.

In User accounts I clicked the unlock padlock (I think I entered the password). I then set the password to none and automatic login to on. I then clicked on the lock padlock.

I thought all was good.

Now when I trying and install software I get the prompt for my password. Neither my old password or nothing works. I cannot sudo anything

In User accounts I cannot click the unlock button so I am locked out of doing any modifications.

my goal is to not need a password. The system does not need to be secure but please assist this newbie.

Thanks

Ron

share|improve this question
    
You can not have a blank password in Ubuntu. Trying to do so renders the administrative access unusable since the password verifiers will not accept a null input. This is a feature, not a bug, and is one of the ways that Linux systems are kept safe from Malware and other malicious damage. –  fabricator4 Jan 6 '13 at 13:08
add comment

marked as duplicate by Web-E, fabricator4, Eric Carvalho, Jorge Castro, Ringtail Jan 7 '13 at 0:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

up vote 1 down vote accepted

You can restore a password for your user by restarting in recoverymode.

To start in recoverymode you hold down shift key before grub loads the system. This will show you a menu. The second entry is usually the recovery boot.

Go into a root shell. Not really sure what the actual name is. In the terminal enter this command to set the password.

passwd YourUsersLoginName

You don't need to set an empty password to enable autologin. Configure ligthdm(or the dm you use) to log your user in automatically.

share|improve this answer
add comment

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