LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


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

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


Hi,

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, 10:18 AM   #2
avatarez
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:
Code:
sudo su -
passwd
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, 10:35 AM   #3
Sjonnie48
Member
 
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.
(Ignored)
root@ubuntu:~#

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, 09:58 PM   #4
nitrousoxide82
Member
 
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, 10:19 AM   #5
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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, 02:46 PM   #6
deepclutch
Member
 
Registered: Nov 2004
Location: Kerala, India
Distribution: Debian Bookworm
Posts: 773
Blog Entries: 1

Rep: Reputation: 34
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 02:47 PM.
 
Old 06-11-2007, 08:36 AM   #7
nautilus
Member
 
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 09:30 AM.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 05:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration