LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2005, 06:05 AM   #1
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Rep: Reputation: 15
Question kdm...y root cannot login?


i have RHEL4 WS on my pc. by default it has gdm running. i changed it to kdm. but i was not able to login as root. so i had to revert to gdm. i use kde. but using gdm does not give a shutdown/reboot option here. how do i turn the 'root' login option ON in kdm?
 
Old 08-01-2005, 06:37 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Check to make sure /opt/kde3/share/config/kdm/kdmrc is a symlink to /etc/opt/kde3/share/config/kdm/kdmrc.

Make sure to set the following in /etc/opt/kde3/share/config/kdm/kdmrc
in section [X-*-Core]: AllowRootLogin=true

Those files may not be in exactly those places for you. This was for SuSE. For my system (FC4) kdmrc was in /etc/X11/xdm/ and the symlink was /etc/kde/kdm/kdmrc

Last edited by Simon Bridge; 08-01-2005 at 06:38 AM.
 
Old 08-03-2005, 12:29 PM   #3
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
well simon..its not working.
/etc/X11/xdm/kdmrc was the file

it was
# Core config for all displays
[X-*-Core]:

and i changed it to
# Core config for all displays
[X-*-Core]: AllowRootLogin=true
 
Old 08-04-2005, 03:51 AM   #4
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
That's the wrong one ... the line you want starts: "AllowRootLogin=" Use your editors "find" function. In my system it was line 211, the surrounding lines read like this:
Code:
# Default is false
AutoReLogin=false
# Allow root logins? Default is true
AllowRootLogin=false
# Allow to log in, when user has set an empty password? Default is true
AllowNullPasswd=true
# Who is allowed to shut down the system. This applies both to the
# greeter and to the command FiFo. Default is All
 
Old 08-05-2005, 01:43 PM   #5
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
still no success Simon. here's what the surounding lines in my kdmrc file look like now..

[X-*-Core]
AllowNullPasswd=true
AllowRootLogin=true
AllowShutdown=Root
AutoReLogin=false
....

btw i am setting kdm by putting preferred=kdm in /etc/X11/prefdm file. is this the correct way ? (it used to work in RH9)
 
Old 08-05-2005, 03:21 PM   #6
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 61
There are two places where AllowRootLogin= is listed. I changed both and that works....
[X-*-Core]
AllowNullPasswd=true
AllowRootLogin=true

and

[X-:*-Core]
AllowNullPasswd=true
AllowRootLogin=true

Putting preferred=kdm in /etc/X11/prefdm file seems to be ok as it works on my box.
 
Old 08-05-2005, 06:00 PM   #7
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
That should do it ...
you can also select kdm as preferred from the graphical login screen or use the desktop switching tool.
 
Old 08-06-2005, 01:24 PM   #8
rextor
Member
 
Registered: Jul 2005
Location: india
Posts: 47

Original Poster
Rep: Reputation: 15
thanks a lot guys for that help....now i can login as root..
but just a curiosity...i want to know where do i get to know about the variables in this file? eg. AllowRootLogin, AllowNullPasswd.etc...a few things which may not be so obvious from their names. any man page, info page or documentaion u can guide me to ??
 
Old 08-06-2005, 01:33 PM   #9
vredfreak
Member
 
Registered: Oct 2004
Location: Arkansas
Distribution: Crux, PCLinuxOS
Posts: 31

Rep: Reputation: 15
If you prefer a GUI:

Go into control center in KDE and there is an option in there for login manager. Click the "administrator mode" button and then under one of the tabs listed at the top you will find hidden users. Make sure root is UNCHECKED. This should allow you login through KDM as root.

You will also find other options (with small explanations) that deal with the other entries you were asking about.
 
Old 08-06-2005, 09:20 PM   #10
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
There are many sources of documentation on the web and in your distribution notes. It's a matter of sifting.

Linux is very large and somewhat complex - documentation tends to be about basic use and configuration or more specific HOWTO's for common uses.

You can try things like the linux documentation project if you want.

Another source for manuals and stuff will be the official project site for whatever you want to know about and its sattellites. For eg.

http://docs.kde.org/en/HEAD/kdebase/kdm/kdmrc.html

would be a good start to finding out about all those kdmrc config entries.
 
  


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
Login without password in KDM frankmulder SUSE / openSUSE 3 10-31-2005 04:49 PM
Can't login using kdm kriidler Slackware 8 07-17-2005 06:45 PM
kdm login problems MockieMoo Linux - Software 0 07-31-2004 08:13 PM
Cannot login with kdm guygriffiths Linux - Software 1 11-27-2003 04:42 AM
KDM: 'Login failed' if not root Ianed Linux - Software 6 09-10-2003 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:31 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