Sudo user password invalid - in most of the droplets I manage

This is a strange/highly critical issue, for some reason in all my droplets, the password for the sudo user is reset and I couldn’t execute any command with sudo privileges. How can I reset the password for the sudo user?. And also I’ve disabled root login. Could any one help me on this? This is really a serious issue and this seems to have been reset some time in the last one week, previously it was fine


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

what is the exact error message you are getting?

You might have to boot using the “Recovery” kernel and either enable root or create a user with sudo access. Or give your current user sudo access.