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.

I am unable to update Ubuntu 12.04 LTS due to root password. I have set a password for admin during installing ubuntu but after that I had changed my admin account to standard account. After changed to standard account without any password. On installing any software or updation it asked for root password. On typing root password, it shows wrong password. and unable to authenticate my password. Is my root password which I set during installing ubuntu is changed?

share|improve this question
1  
Have you tried to start in recovery mode ? askubuntu.com/questions/150367/how-do-i-boot-into-recovery-mode –  thom Nov 20 '13 at 3:45
1  
Possibly...maybe not...it could be that @kmeena killed her sudo rights. –  thom Nov 20 '13 at 3:48
1  
Close voters the answer flagged as a duplicate wont work as this user does not have sudo rights. –  Warren Hill Nov 20 '13 at 13:27
    
possible duplicate of How do I reset a lost administrative password? –  guntbert Nov 20 '13 at 17:54

1 Answer 1

Ubuntu does not have password for root by default so you will never guess it.

The reasons for this are explained in my answer to this question:
How to enable root login? and there is more detail here: RootSudo Comunity Documentation.

What you need to do to fix this is either give root a password which is not recommended practice, or make your self an administrator again.

To do this you will need to boot into a root shell as described here:
How do I boot into recovery mode?

Once in you can add yourself to the sudo group with

usermod -aG sudo your_user

Replace your_user with your user name.

Next you need to set a password

Now we can set the user's password with the passwd command. (In this example I will use your_user as the example, you need to substitute whatever the user's username is):

passwd your_user
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
root@ubuntu:~#

Again replace your_user with your user name.

Reboot and you now have an administrator account so should be able to update.

If you don't want your account to be an administrator account you can create a new user instead that is but you will need to do that from recovery mode.

share|improve this answer
    
As usermod improperly used (just type -g instead of -G) can create a lot of troubles I prefer adduser user_name group_name. –  guntbert Nov 25 '13 at 20:25

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.