PDA

View Full Version : [ubuntu] root password lost while upgrading to Ubuntu 12.04



Claude Rebeck
June 8th, 2012, 11:56 PM
While studying "Learning the Shell"
As I try terminal entries, I GET 'Permission Denied". Then
I try "su" to become the root user. When I use the password
that I entered as I installed Ubuntu 11.04, I get Authentication
failure. and cannot use the lesson commands.

I am the sole user and should be able to be root user.
when I am a user (not root) the password I use after the
session timed out works properly.

When I updated to Ubuntu 12.04, I had no opportunity to enter a password. How do I get to What the computer has for root password?

wilee-nilee
June 8th, 2012, 11:59 PM
You would use

sudo -ito get a root terminal.

There is no actual root password.

varma1993
June 9th, 2012, 12:32 AM
Claude it looks like you are confused between the sudo password and the root user password. Both are different.
By default the root user password is not set in ubuntu..
you gotta do it on your own..
type this in your terminal:
<snip>
This allows you reset your root password without the old root password.

sisco311
June 9th, 2012, 01:35 AM
While studying "Learning the Shell"
As I try terminal entries, I GET 'Permission Denied". Then
I try "su" to become the root user. When I use the password
that I entered as I installed Ubuntu 11.04, I get Authentication
failure. and cannot use the lesson commands.

I am the sole user and should be able to be root user.
when I am a user (not root) the password I use after the
session timed out works properly.

When I updated to Ubuntu 12.04, I had no opportunity to enter a password. How do I get to What the computer has for root password?

Please check out: community/RootSudo

If you have any further questions, please feel free to ask.

varma1993 is right, the root password is locked by default in Ubuntu.

If you read the RootSudo link, you will find out why it's locked. And you will also find information about setting and locking the root password.

varma1993
June 10th, 2012, 10:47 PM
While studying "Learning the Shell"
As I try terminal entries, I GET 'Permission Denied". Then
I try "su" to become the root user. When I use the password
that I entered as I installed Ubuntu 11.04, I get Authentication
failure. and cannot use the lesson commands.

I am the sole user and should be able to be root user.
when I am a user (not root) the password I use after the
session timed out works properly.

When I updated to Ubuntu 12.04, I had no opportunity to enter a password. How do I get to What the computer has for root password?
Claude it looks like you are confused between the sudo password and the root user password. Both are different.
By default the root user password is not set in ubuntu..
you gotta do it on your own..
type this in your terminal:
sudo passwd
This allows you reset your root password without the old root password.

varma1993
June 10th, 2012, 10:49 PM
While studying "Learning the Shell"
As I try terminal entries, I GET 'Permission Denied". Then
I try "su" to become the root user. When I use the password
that I entered as I installed Ubuntu 11.04, I get Authentication
failure. and cannot use the lesson commands.

I am the sole user and should be able to be root user.
when I am a user (not root) the password I use after the
session timed out works properly.

When I updated to Ubuntu 12.04, I had no opportunity to enter a password. How do I get to What the computer has for root password?
Claude it looks like you are confused between the sudo password and the root user password. Both are different.
By default the root user password is not set in ubuntu..
you gotta do it on your own..
type this in your terminal:
sudo passwd
This allows you reset your root password without the old root password.

Claude Rebeck
June 20th, 2012, 08:27 PM
Thanks for the help!! Problem solved