[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 858
  • 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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

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