LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on... Note: An (*) indicates there is no official participation from that distribution here at LQ.

Notices


Reply
  Search this Thread
Old 11-26-2004, 05:17 PM   #1
energiza
Member
 
Registered: Oct 2004
Location: Queretaro Mexico
Distribution: SUSE 10.2
Posts: 51

Rep: Reputation: 15
Can't Login as Root


I have SuSE and it's very nice, faster than the RH8 I had before, though it has caused me more problems than RH8.

Remember when you write wrong password it tells you immediately?
That is not the case, login: root, password, goes ahead and returns to login screen:

/var/log/messages
Nov 26 16:51:29 linux kdm: :1[5526]: pam_unix2: session started for user root, service xdm
Nov 26 16:51:30 linux kdm: :1[5526]: pam_unix2: session finished for user root, service xdm

See?, the sesion is ended in about 1 second.

Ok, I login as myself not as root. Once in session, I CAN OPEN A ROOT CONSOLE and I can start mysql server, and thins that only root can do, but I can not erase or edit files through Konqueror as I used while in a root session under X.

Any Idea?

Yesterday I had a major problem, where package database was lost. The computer got frozen, I turned it off, waited 30 seconds, and restart. After that, many files lost. I UPDATED packages and I could enter again to Linux. I never had frozen things in old RH8, but it's not as nice and as fast. So I think it's worth get to know better this SuSE thing.

Thanks for the help in fixing the login problem (I know that backing up my recent work and reinstall SuSE will work fine, but it's not as good as to learn what happened).

Regards
Energiza
 
Old 11-26-2004, 05:27 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not good to login as root all the time. You should be able to have mySQL autostart. But if I understand you and you are using kdm as your login manager then you need to edit /etc/X11/xdm/kdmrc file and allow root to access through kdm. There is two line to edit. If I remember they say something like allow root=false. Change to true.

Brian1
 
Old 11-26-2004, 11:55 PM   #3
energiza
Member
 
Registered: Oct 2004
Location: Queretaro Mexico
Distribution: SUSE 10.2
Posts: 51

Original Poster
Rep: Reputation: 15
Thanks. Yes I understand not to login as root all the time and the autostart of mySQL, but it's just that I can not longer login as root using X. I searched for the file kdmrc but its not there. I searched under /etc/X11 for files with "root" inside but none has the shape of root=true/false. Do you think that's why?, Should I make that file and what's the format?

Thanks
 
Old 11-27-2004, 10:57 AM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
What login manager are you using?
What KDE version?
What Distro?

Just from your reply did you goto /etc/X11/xdm and see if there was a file called kdmrc? It reads you went to /etc/X11. This setup I am using is KDE 3.3.1.

Might be located in /etc/kde/kdm
Do a search for kdmrc.

Brian1

Last edited by Brian1; 11-27-2004 at 12:25 PM.
 
  


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
unable to login as user; can login as root. rksanders Debian 24 02-09-2011 08:01 AM
wrong login shell prevent root login cefs99 Linux - Security 4 05-31-2006 08:28 AM
I have re-installed MK 9.2 but cannot login as user, login as root works. bobinglis Mandriva 2 02-22-2004 11:39 AM
can only login as root? user login doesnt work..? anyone? hacking_4_b33r Linux - General 1 02-05-2004 11:40 PM
root login incorrect ,then passwd root,but error sunnycn Linux - Security 6 05-20-2002 10:54 AM

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

All times are GMT -5. The time now is 08:51 PM.

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