I am working on an ubuntu 12.04 server and i was not provided a sudo password. Now i need to recover it. I found out that we need to reboot into recovery mode to do so but we don't know how to get into recovery mode through ssh.
Any idea of how is this possible or any other ideas for recovering the sudo password? I have root access through ssh.
Update:
I've tried to do this:
su -
But without success:
su: Authentication failure
I have root access through ssh.
- So what is it you need again? If you actually have root access, then you have all you need. Remember the sudo password, is the password for the user issuing the sudo command. Just runpasswd username
to set the password for your users.passwd username
returnsAuthentication token manipulation error
sudo -i
works.