lost user password, disabled root login. no sudo access
On ubuntu 14.04 with an admin user created.
I have created a key for ssh and can login with my user without a password prompt.
However i lost the password, and also hardened the root user login.
When i reset root password from the web panel, i am able to login, and prompted with to create mandatory new password. I do that and am immedidatly looged out and a new login propmt appears. When i enter my new password for root,i am responded with “login incorrect”.
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×