Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 07-27-2005, 01:22 PM   #1
Registered: Jul 2005
Posts: 161

Rep: Reputation: 30
Can't log in as root from KDM, how do I get GDM back?

Hi guys,

I have installed Ubuntu v5.04, with its default GDM, I was able to enable root login through the GNOME GUI.

Since then I had installed KDE and and made KDM the default login manager. And I think I had enabled the root login on KDM through the KDE GUI as well. I can see the option of root is checked from the KDE's control centre.

However, I can't change the login settings. With my normal account, I would be prompted password to change those settings, but after entering the password, either the windows freezes or it jumped back to the parent page, so I can't touch any of the login settings. And since I can't login as root from KDM, I can't try it out with root setting.

Now my questions are:

1. What's wrong with the control centre? What can I do?
2. How do I switch the default login manager to GDM?
3. I can login as root from the command prompt, and when I execute startx it would bring me to GNOME. How do I get into KDE from the command prompt?

Thanks in advance.
Old 07-27-2005, 01:42 PM   #2
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
1. Have you set a root password? have you tried the user password?
2. dpkg-reconfigure
3. update-alternatives

If the first option doesn't fix the login as root problem you can fix this from the command line by editing /etc/kde3/kdm/kdmrc and altering the line AllowRootLogin=true in [X-*-Core] section.

You can dpkg-reconfigure to change the graphocal login, use
dpkg-reconfigure kdm
It should promt you for what you want as the default display manager.

The alternatives system, can be used to change some of the system defaults try
update-alternatices --config x-window-manager
and select kwin
update-alternatives --config x-session-manager
and select /usr/bin/startkde
Old 07-27-2005, 02:16 PM   #3
Senior Member
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian 9 Stretch
Posts: 2,308
Blog Entries: 8

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
First off and most importantly, graphical root login is NOT a good idea. It's better to learn how to use your computer without graphical root login than to acquire bad habits.

That said, KDE has issues with Ubuntu's passwordless locked root account. As you've already noticed, there are configuration settings in KDE which require you to enter a root password--these fail if no root password even exists. In order to set this password, open up a terminal and type in these commands:

sudo su

The first command will give you a (text based) root login. The second command will let you manually set your password.

With this password set, you'll be able to fully use KDE's configuration tools.

But let me repeat--it is NOT a good idea to use a graphical root login. Especially with a complex application or a DE like KDE or GNOME, sometimes weird things will get set while logged in as root which messes things up for normal users. For example, installing a Firefox plugin while logged in as root is a big no-no. I accidentally did that once and it broke Firefox for ALL other users.
Old 07-28-2005, 12:21 AM   #4
Registered: Jul 2005
Posts: 161

Original Poster
Rep: Reputation: 30
You guys are cool, everything is fixed now.

Isacc, I would definitely bear your advice in mind.


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
GDM to KDM Pr_009 Fedora 1 11-23-2005 05:14 AM
Kdm -> Gdm thesystem Ubuntu 1 10-11-2005 08:02 PM
kdm,gdm darkangel29 Linux - General 2 09-25-2005 12:26 AM
how to use gdm instead of kdm? mking007 SUSE / openSUSE 5 10-15-2004 11:01 PM
KDM to to switch? oRg Linux - Newbie 6 05-17-2004 10:12 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:16 AM.

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