Solved

Ubuntu root password not recognized but sudo will work

Posted on 2007-11-19
4
827 Views
Last Modified: 2012-06-21
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
Comment
Question by:jtregjtreg
  • 2
  • 2
4 Comments
 
LVL 88

Expert Comment

by:rindi
ID: 20311633
On ubuntu you have to use sudo, su will not work.
0
 

Author Comment

by:jtregjtreg
ID: 20311800
and does it also mean U cannot log in as root either?
0
 
LVL 88

Accepted Solution

by:
rindi earned 50 total points
ID: 20312522
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
 

Author Closing Comment

by:jtregjtreg
ID: 31409913
cheers mate, silly of me, really... I should have figured that one out! Anyway thats what this place is all about
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This is the error message I got (CODE) Error caused by incompatible libmp3lame 3.98-2 with ffmpeg I've googled this error message and found out sometimes it attaches this note "can be treated with downgrade libmp3lame to version 3.97 or 3.98" …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now