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