I have sudo access, but I don't remember the sudo or root password; how do I change it from my limited account using sudo?

2 Answers 2


The sudo password is your password; you only need root's password if you're using su as non-root.

  • I am using a limited account Jan 31, 2014 at 4:27
  • 1
    If, as your question implies, your limited account has sudo access, my answer still stands.
    – DopeGhoti
    Jan 31, 2014 at 4:29

As DopeGhoti mentions, sudo asks for your user password, not the root password.

If you have neither the root password nor the password of an account that has sudo rights, your next best bet is to reboot the server into maintenance mode, or if that doesn't work right, boot with init=/bin/sh as part of the kernel command line to change the root password.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.