{ 16 comments… read them below or add one }

1 John Webb September 9, 2007

I have installed ubuntu and always log in as user. I have read the HOW TOO’s but I am confused by the comment ‘Make sure you use the root password.’ How can you use a root password when you haven’t got one (I think) because the only password I use is the password I gave when I installed Ubuntu (dapper Drake). Is this a root password also if you say it’s root as time of login. If you have to have a seperate login root password – How do you get it? Thanks john6.

Reply

2 Naveen Kumar July 21, 2010

By default, the root account password is locked in Ubuntu. This means that you cannot login as root directly or use the su command to become the root user. However, since the root account physically exists it is still possible to run programs with root-level privileges.

Reply

3 Mark cope March 12, 2011

Hmmm, lets see Can not log in as : \ SU Thought Ubuntu is open source The only why you can adjust the Kernel is as root. what they hiddin willis.

Reply

4 Mark cope March 12, 2011

opp’s should have read more of the reply’s. but as a openBSD user never really had this issue.

Reply

5 Dr. Fak September 13, 2007

Thank you very much for this help!

To all the latin people…..here is the answer in spanish:

Escriban “su -” para cambiar al root. Les pedira la clave del root.

Escriban “su – gon” para cambiar al usuario llamado gon. Les pedira la clave.

Thanks again.

Cheers.

Reply

6 AIS January 17, 2009

John.
You can change your root password by typing in console” sudo passwd root ” By doing this i had to enter my user password then set a new root password and repeat it.

Reply

7 Kwame April 25, 2009

Thanks

Reply

8 fahim July 18, 2009

thnx. by default there is no password for root, hve to get by typing ”sudo passwd root”.

Reply

9 Riobe August 26, 2009

Thanks for this article and to AIS/fahim for the additional information about how to change the root password! Just what I was looking for.

Reply

10 Antonio September 6, 2009

AIS, thanks a lot

Reply

11 Gregory W September 6, 2009

The question is still unanswered.

To login as root is very convenience and very important for some applications. Without it, you may not be able to run those programs at all. Su is good but with great limitation.

So if anyone who know the answer, please help. We do not need advise about workaround.

Reply

12 Gregory W September 6, 2009

After 5 minutes of browsing on the Internet, I found it is very easy to make the changes so you can login as root from GUI. This is for Fedora 11:

First, (dangerous?) you must su and login as root then cd to /etc/pam.d
There are two files: gdm and gdm-password. Use your editor and
Comment this statement for both files:

# auth required pam_succeed_if.so user != root quiet

Save and logout. Try login as root. You should be.

Reply

13 Gregory W September 9, 2009

After login as root and play around, I found the above changes were not enough. Thanks to my-guides.net, I found the last piece that fixed the problem.

You need to edit another file: /etc/PolicyKit/PolicyKit.conf
and add
between .

That will do the job.

Reply

14 Gregory W September 9, 2009

The missing statement between <config></config> is
<match user=”root”><return result=”yes” /><match>

Reply

15 Asheesh September 23, 2009

Thanks a tonnnnn Gregory. Somehow I could never find the answer for this , instead of getting ridiculed for wanting this. :)

Reply

16 Vytautas June 5, 2011

Thanks for command “sudo passwd root” !!

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <blockquote> <pre> <a href="" title="">
What is 4 + 11 ?
Please leave these two fields as-is:
Solve the simple math so we know that you are a human and not a bot.




Previous post:

Next post: