I am having a ubuntu server and forgot the root password. I could not find the pass in any documentation (My fault). Now I have another user which is in the sudo list but the password of that user is saved in kitty which I also dont remember, I can login with that but when I login and execute some admin commands with sudo its needs the password for that user which I can not see it. The question is how I can see that kitty password which is saved in hidden characters??
To recover your password, saved in KiTTY follow this simple steps:
It will look like this, where "YourPassword" in the password stored in KiTTY:
It's encrypted, so you can't.
However, you can reset the root password by booting into single-user mode. In GRUB add the word
single
to the end of the boot command and it'll allow you to set the root password.If it's a remote server, that's definitely more difficult as single-user mode = no network access. You'd need to get a console somehow.
EDIT: Since it's an amazon instance you could attach the EBS volume to a different instance and modify the passwd file manually.