0

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

3

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

2
  • 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
1

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.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .