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
 
LinkBack 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: Slackware 14.0
Posts: 8,464

Rep: Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877Reputation: 877
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,328
Blog Entries: 33

Rep: Reputation: 329Reputation: 329Reputation: 329Reputation: 329
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,862

Rep: Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030Reputation: 1030
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,824

Rep: Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724Reputation: 724
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: 6,891

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 01:32 AM.

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