LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to login as root in ubuntu? (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-login-as-root-in-ubuntu-832119/)

jyotidutta87 09-14-2010 01: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 01: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 01:20 PM

Code:

sudo -i
Code:

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

sudo passwd
su

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 01:24 PM

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

https://wiki.ubuntu.com/RootSudo

DavidMcCann 09-14-2010 01: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 pam_succeed_if.so quiet
but which used to contain something like "user != root"
You can try that.

frankbell 09-14-2010 11:08 PM

Code:

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:52 PM.