Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 06-08-2007, 09:57 AM   #1
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Rep: Reputation: 43
How to enable root login on 6.06 dapper?


Somewhere there's a configuration file that enables you to login as root.
I know it because approximately one year ago I installed Kubuntu 6.06 for the first time, and I do remember that I once edited a file somewhere with this line: enable root login true/false.
Now I thought to find it in the System Administration section of the System Settings, in the login manager window.
But it's not there.
If you know an answer to this little problem, please let me know.

Kind regards
Old 06-08-2007, 11:18 AM   #2
LQ Newbie
Registered: Jun 2007
Location: Buenos Aires, Argentina
Distribution: Ubuntu 7.04 / Fedora Core 6
Posts: 2

Rep: Reputation: 0
What you first need to do is to make a root password, by default ubuntu creates the root password randomly.

To do that you need to do:
sudo su -
I dont remember if after that you need to change something else in order to login. Try to login after that.
Old 06-08-2007, 11:35 AM   #3
Registered: Jun 2005
Location: Earth
Distribution: Ubuntu10.04
Posts: 308

Original Poster
Rep: Reputation: 43
This is fun:

#sudo su -
You are required to change your password immediately (root enforced)
su: Authentication token is no longer valid; new one required.

And now? I mean I want to login as root in a shell and then start the x-server...
I can perform all kinds of admin tasks with the help of System Settings, just by entering my user password. That I want to change.
For some tasks it is easier to run KDE as root.
Old 06-08-2007, 10:58 PM   #4
Registered: Apr 2005
Location: Rio de Janeiro, Brazil
Distribution: Ubuntu 9.04 (Jaunty), Arch Linux 2009.08
Posts: 83

Rep: Reputation: 17
In the default Ubuntu setup you can do that with your regular password. Type
sudo su after logging in with your regular user. Your password will be required once again. Then you'll have a root shell. Try start the X server from there.
Old 06-09-2007, 11:19 AM   #5
Wim Sturkenboom
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
sudo passwd root allows you to specify the root password and that way 'enables' the root account.
Not sure how to enable graphical root login in kubuntu. In Ubuntu, you can enable it in gdm.conf (section security > AllowRoot).
Old 06-09-2007, 03:46 PM   #6
Registered: Nov 2004
Distribution: Debian Testing+Sid
Posts: 715
Blog Entries: 1

Rep: Reputation: 33
dont ever login as root.ubuntu sudo does the job very well.
u can enable graphical login as root from gdmsetup command.

Last edited by deepclutch; 06-09-2007 at 03:47 PM.
Old 06-11-2007, 09:36 AM   #7
Registered: Jun 2007
Location: London, Athens
Distribution: Debian, Ubuntu
Posts: 36

Rep: Reputation: 15
Ooops... Just realized that people have answered to the initial question...

I will agree with deepclutch though... It is an extremely bad idea to login to X as root. It is like converting your ubuntu box into windows... (well, not THAT bad but quite similar...)

Last edited by nautilus; 06-11-2007 at 10:30 AM.


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
Enable remote root login in /etc/securetty jon_k Linux - Software 5 03-17-2011 12:52 AM
How to enable auto login for root in Redhat alix123 Programming 5 06-27-2007 01:43 AM
how to enable root login on console when LDAP server is down ldapsky Linux - Networking 0 05-06-2006 08:27 PM
Enable root login in wu-ftpd? Sevoma Linux - Software 5 02-04-2005 07:49 PM
Disable/Enable Root Login @ Console ryanstrayer Linux - Security 4 01-18-2002 05:49 PM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:27 PM.

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