Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know my password, I used the same one for root as my personal user. This is my 2nd time reinstalling the OS because it won't let me login as root. Even when I login as my own user and then "su root" it won't take my password.

Am I missing something that needs to be setup about the root user?

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Seems like you are a hardcore redhat fan.root user is normally disabled in ubuntu due to security reasons. Look at the sudo concept https://help.ubuntu.com/community/RootSudo

You can do one thing to make root user active

type

$sudo passwd root

It will prompt you for password. Enter your new password then you can try

$ su

this will drop you directly to the root shell

share|improve this answer
1  
What does Red Hat have to do with the root user? –  joschi Aug 11 '10 at 6:34
1  
Because RH doesn't disable the root user logins, Ubuntu does. –  Mistiry Aug 11 '10 at 13:47
    
@Mistiry: Almost all Unix distributions (several hundreds of Linux distros, most BSDs, Minix) come with root enabled. RedHat is not special in any way. –  grawity Aug 11 '10 at 20:10
    
I didn't realize it was pretty standard on ubuntu.... thanks for the heads up. –  Webnet Aug 11 '10 at 20:42
    
@grawity: I never said "RedHat is the ONLY one", but it is well known that Red Hat and RH-based distros do not explicitly disallow root logins, Ubuntu does. The original answerer mentioned Red Hat, and my original comment was @joschi's comment asking a question specifically about Red Hat, hence my answer. –  Mistiry Aug 16 '10 at 13:43

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.