Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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 lost my Ubuntu root password and now , i just want to get it by doing changes on sudoers file but before this I would like to get backup of my working Ubuntu user-profile due to safety purpose of data and software's .

Does anybody know how to do it , if so please share the information .

share|improve this question

Backups are always good to have. That is probably why there is a simple backup utility in the settings window, under "system". Tell it to back up a folder, and select you home directory, tell it where to backup, and it's done.

But why compound you original error by making more errors? You might be able to get it to work, but it would be better to understand what you did, and the proper way to fix it.

I don't believe you when you say you lost your ubuntu root password; first of all, if you knew enough to actually create a usable root password, you would already know how to create a new one the same way. But you don't need a root password, which is why Ubuntu does not provide one by default.

I suspect what you may have done is somehow either deleted the admin group, or removed yourself from it. Doing this will take away your ability to use sudo. If this guess is correct, the solution is not to edit the sudoers file, but to add yourself back to the admin group.

If you edited the sudoers file and messed that up, then you do need to edit the file to restore it back to what it was.

Most of these things are accomplished following these directions. It's mostly standard Unix/Linux commands that are easy to find lots of information.

Then again, perhaps you already do know what to do, in which case... good luck, and feel free to ask for advice before destroying your system rather than after. :)

share|improve this answer

All the files for every user are placed in /home/username directory. Make sure you've turned on hidden files display.

P. S. After backing up you can try this:

share|improve this answer

Have a look at our guide on resetting your password using recovery mode, the process has changed in 12.04, and the admin group is now called sudo.

Reset Password Using Recovery Mode

Whilst in recovery mode you could add yourself back to the admin group using:

adduser username sudo

replacing username with your user name ie. adduser phil sudo

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.