LinuxQuestions.org

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

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

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.

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

frankbell 09-14-2010 10: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 05:42 AM.