Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

I'm trying to install xampp in my Ubuntu and in the process its asking for my root password which i don't remember ? I know my sudo user password. How can I recover my root password ? Please help !!

share|improve this question
add comment

marked as duplicate by Alvar, Mitch, user68186, aquaherd, belacqua May 29 '13 at 17:05

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer

in that case use below steps:

  1. sudo su -

  2. Enter your sudo password

  3. then you will be get the root shell.

  4. now enter below command

  5. passwd

  6. enter the new password for root & confirm that password

that's about it.

If you are facing any issues while performing the above steps or after performing the above steps let me know.

share|improve this answer
    
actually 'm not getting the sudo password. how can i know the sudo password. –  megha May 29 '13 at 10:52
    
You welcome! :) Did it work for you? –  Rishee May 29 '13 at 10:52
    
your sudo password is your login password. If you have lost it it can be reset following these instructions. –  Warren Hill May 29 '13 at 12:39
add comment

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