Solved

Ubuntu root password not recognized but sudo will work

Posted on 2007-11-19
4
823 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 87

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 87

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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

Suggested Solutions

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

708 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

13 Experts available now in Live!

Get 1:1 Help Now