Good day!

Ubuntu 16.04 runs on a laptop. It used to have a login password, i turned it off just now.

Now the system does not accept the sudo password anymore... I cannot unlock user account, terminal does not accept sudo password which worked fine prior to turning the login password off.

Enter does not work either.

Am i missing something? Thanks for your help in advance!

All the best, Hardovic


Try this help page about recovering a lost password.

With that you can also create new users on the command line :


After you manage to get a root shell on your own hard disk, you can do for example :

adduser mynewuser
adduser mynewuser sudo

Which adds a new user called "mynewuser", and then, with the second line, makes the new user part of group "sudo", which means giving the new user sudo rights.

  • Thanks for your reply. It turned out i could just set a new password by using $ passwd in terminal. I was then asked by the shell to type in and repeat a new passsword. It worked for unlocking my user account and sudo commands afterwards. – Hardovic Feb 5 '17 at 15:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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