-   Linux - Newbie (
-   -   How to login as root in ubuntu? (

jyotidutta87 09-14-2010 12:12 PM

How to login as root in ubuntu?
I was trying to login as root in ubuntu. But it was not accepting it. How to log in as root in ubuntu?

repo 09-14-2010 12:14 PM

Welcome to LQ

It's not a good idea to login as root in the GUI.
Login as user, and use su or sudo if you need to do root task.

Kind regards

sag47 09-14-2010 12:20 PM


sudo -i

sudo bash
Or you can set the root password and login as root via su.

sudo passwd

There's nothing wrong with logging into Ubuntu as root. As long as you're not a beginner at Linux that is.

snowpine 09-14-2010 12:24 PM

Ubuntu's default security model is to lock the root account and use sudo instead.

DavidMcCann 09-14-2010 12:39 PM

In Fedora, I fixed the block on root log-ins by editing /etc/pam.d/gdm. There's a line which now reads
auth required quiet
but which used to contain something like "user != root"
You can try that.

frankbell 09-14-2010 10:08 PM


sudo su
in a terminal will open a root session that will continue until you type exit.

I learned this at my LUG.

All times are GMT -5. The time now is 01:53 AM.