I'm using Ubuntu 11.10 and some time ago I opened User Accounts with Administrator Privilage and I made change as "LOG IN WITHOUT PASSWORD" and now I want to add a password to My User Account. But I can not unlock the user account dialog, because it is asking for password and if it left blank still it's not opening! Please Help Me to solve My Problem!
Open a terminal, and enter "passwd" ... this will change the password for the current user. If you want to change an other users password, you will need to enter "sudo passwd", because then you need to run passwd with root privileges.
just open a terminal and write
passwd It will ask for the new password if it was blank previously or ask for the old password if it was not blank.
I found the solution when I encountered this before.
Open up Terminal and type in
Enter a new password (For a strong password make sure it has capitals, more than 8 characters and numbers) and press enter.
Retype your new password and press enter.