{ 27 comments… read them below or add one }

1 John Webb September 9, 2007 at 11:09 pm

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.


2 Naveen Kumar July 21, 2010 at 9:51 am

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.


3 Mark cope March 12, 2011 at 4:39 am

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.


4 Mark cope March 12, 2011 at 4:42 am

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


5 Dr. Fak September 13, 2007 at 7:38 pm

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.



6 AIS January 17, 2009 at 3:08 pm

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.


7 Buck February 8, 2013 at 1:40 am

Baller. That was perfect. Thank you.


8 Kwame April 25, 2009 at 2:27 pm



9 fahim July 18, 2009 at 3:37 am

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


10 Riobe August 26, 2009 at 6:29 pm

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.


11 Antonio September 6, 2009 at 12:41 pm

AIS, thanks a lot


12 Gregory W September 6, 2009 at 7:16 pm

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.


13 Gregory W September 6, 2009 at 8:09 pm

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.


14 Gregory W September 9, 2009 at 4:01 am

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.


15 Gregory W September 9, 2009 at 4:22 am

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


16 Asheesh September 23, 2009 at 9:16 pm

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


17 Vytautas June 5, 2011 at 5:11 pm

Thanks for command “sudo passwd root” !!


18 person February 22, 2012 at 9:40 am

you didn’t answer the question!

you condescendingly gave some “best practices” advice, and then proceeded to explain out how to do something else.


19 Newbe March 13, 2012 at 2:06 am

I have to agree that the entire tenor of this conversation is offensive. Crossing the street is dangerous, also, but I do it anyway. My mother taught me the risks when I was quite small, as well as how to do it safely. If you really want to keep UBUNTU safe from learning problems, I suggest that you lock down the entire system and send us all to a Windows app.

Instead, please stop insulting all of us who are adults and capable of taking our own risks. I need to open the folder /etc/openvpn using my GUI and add a file to the folder. Stop patronizing me and tell me how to do this please.


20 McAuley March 21, 2012 at 2:40 pm

I agree whole-heartedly. Uber-geek Linux users can be extremely condescending. I’ve had them to tell me to RTFM. Which one? The “right” one”? The “other” one. The one that applies to my distro? Oh wait, that distro has tons of bugs, but the upcoming distro gives you a workaround. RTFM!
How bout this? FTFM ! FIX it. Fix all the crappy and conflicting documentation. Yeah, this thing is “free”. But when all the wasted time getting things to work is considered, it’s more expensive than products from The Dark Empire. Bottom line is, if you’re going to do something, whether it’s for free or not, do it right and make it work like you say it does. Or don’t do it at all.
You people have a lot of nerve criticizing Windows when you worship a product that is a stone’s throw away from hieroglyphics and documented in glyphs.
Cheers, ubers …


21 tonto July 12, 2012 at 3:59 pm

I agree wholeheartedly. I need Linux for a project, but it, and all other Linux distros I’ve used, seems to be dwelling in the past, and the developers delight in their backward approach and to delight in making things difficult. Personally, I think it’s almost up to the Windows 98 point, but not quite there yet….


22 pankaj August 31, 2012 at 4:28 am

way of xplanation is right


23 Rathod July 27, 2013 at 5:22 am

tx for using this site


24 niloufar September 18, 2013 at 7:44 am

Thanks for your favor ,It wa so usefull


25 Arif May 13, 2014 at 9:39 pm


I ran following commands as root and now im am unable to su from any user/admin please advise.

chmod -o-x /bin/su
chmod -g-x /bin/su


26 robert October 14, 2014 at 8:04 pm

Linux has become more and more like microsoft, not allowing root log in? really?
I thoguht the whole selling point for linux back in the day was that we didnt have the hood welded shut!! Any one remember that, I also remember that in the beginning of linux.. back when it was all terminal there was only root!! you could add other users of course, but why? Any way my point being is that with out Root LOG IN!! you are just anothe windows microsoft puppet.


27 Leo Leavitt March 22, 2015 at 12:28 am

I have read all of the notes on root login and still do not have the answer that i want. I have over 30 years in the business and since retired a 100% disabled Vet. I just want to be able to Login as root just like any other user and I do not want to have to su each time to do things. I am well aware of the risks but since this is my own Ubuntu System I think I am capable of managing it. I am running UBuntu 14.10 and what I would like is to be able to do the following;
Login root
passwrd lslslslslsl
and then I will be root for anything that I need . Please help with a simple straight way to do this in UbunTu.. DO I need to use Fedora instead ??
Leo Leavitt


Leave a Comment

Tagged as: , , , , , , ,

Previous Faq:

Next Faq: