How To enable root logins in KDE / kwin on Suse Linux
How to Enable Root Logins
The Problem
You need to log into your Xwindow environment as root to change your configuration, but KDM won't let you. When you try to log in as root you see an error which reads:
Root logins are not allowed.
How rude!
This is actually fairly easy to fix, but if you're new to Unix/Linux keep this in mind: the root account is generally only used for administration tasks. Running a *nix box as root as a general rule is a bad thing.
The Solution
Fortunately this is an easy fix. You will need to restart your XWindow environment for this change to take effect so make sure you save your work before continuing.
1. Open the file /opt/kde3/share/config/kdm/kdmrc
2. Look for a line containing the text to "AllowRootLogin" - depending on the distribution you run you may find that the line is either commented out (has a # to the left) or it is set to false.
This line must be uncommented and must not be set to false. The line is located somewhere around line 246. See the following example:
# Allow root logins?
# Default is true
AllowRootLogin=true
In this example, the setting is not commented out (the two lines previous to AllowRootLogin are) and it is set to true, enabling root to log in. Save the file after making the change and then restart your Xwindow environment.
