Ubuntu – How to add a Password to User Account if previously it set to “Log In Without Password”

passwordusers

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!

Best Answer

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.

Related Question