LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 09-14-2010, 12:12 PM   #1
jyotidutta87
LQ Newbie
 
Registered: Sep 2010
Posts: 1

Rep: Reputation: 0
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?
 
Old 09-14-2010, 12:14 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Linux Mint
Posts: 8,468

Rep: Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879Reputation: 879
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
 
Old 09-14-2010, 12:20 PM   #3
sag47
Senior Member
 
Registered: Sep 2009
Location: Philly, PA
Distribution: Kubuntu x64, RHEL, Fedora Core, FreeBSD, Windows x64
Posts: 1,402
Blog Entries: 33

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 09-14-2010, 12:24 PM   #4
snowpine
Senior Member
 
Registered: Feb 2009
Posts: 3,906

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

https://wiki.ubuntu.com/RootSudo
 
Old 09-14-2010, 12:39 PM   #5
DavidMcCann
Senior Member
 
Registered: Jul 2006
Location: London
Distribution: CentOS, Salix
Posts: 2,941

Rep: Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767Reputation: 767
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.
 
Old 09-14-2010, 10:08 PM   #6
frankbell
Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mageia, Mint
Posts: 7,315

Rep: Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380Reputation: 1380
Code:
sudo su
in a terminal will open a root session that will continue until you type exit.

I learned this at my LUG.
 
  


Reply

Tags
login, root


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Enabling root login in ubuntu nthillaiarasu Ubuntu 1 11-21-2007 03:48 AM
UBUNTU 7.04 i386 cannot login as root ... ? HELP ? shaft Linux - Newbie 2 11-02-2007 11:10 AM
ubuntu can't login as root kristof_v Linux - Software 20 12-30-2006 06:09 AM


All times are GMT -5. The time now is 09:55 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration