• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 879
  • Last Modified:

Ubuntu root password not recognized but sudo will work

I have installed Ubuntu and it all is ok and until now I have used sudo command. I tried to login as root and to issue su - command but the installation does not recognise my password. I am certain I entered the correct password.... is the sudo password not the same as the root password?

0
jtregjtreg
Asked:
jtregjtreg
  • 2
  • 2
1 Solution
 
rindiCommented:
On ubuntu you have to use sudo, su will not work.
0
 
jtregjtregAuthor Commented:
and does it also mean U cannot log in as root either?
0
 
rindiCommented:
Do have the Linux console installed? If yes, start a session, then you should have a windows with the options on top (Session, Edit, View etc.). Click on Session and then on "new root shell", enter your user password, then enter the following

sudo passwd

Now enter a pasword for the root user (not the same as when you enter sudo somethingelse and then have to enter your user password) twice.

Now open a normal user's Terminal session and try
su

TheNewPassword.

0
 
jtregjtregAuthor Commented:
cheers mate, silly of me, really... I should have figured that one out! Anyway thats what this place is all about
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now