Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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

2 Answers 2

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 at 4:27
1  
If, as your question implies, your limited account has sudo access, my answer still stands. –  DopeGhoti Jan 31 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

 
discard

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.