Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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

share|improve this answer
I am using a limited account – user2399991 Jan 31 '14 at 4:27
If, as your question implies, your limited account has sudo access, my answer still stands. – DopeGhoti Jan 31 '14 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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