LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 02-25-2005, 10:10 AM   #1
Jamsoft
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Rep: Reputation: 0
Problems with root


I have a strange one.

Im running redhat 9.0 on a desktop computer. Its an installation here at the office, and is on a machine I cant just wipe.

About 3 months ago, we became unable to login as root. If we login as root from ANYWHERE, we are immediately logged back out.

This includes locally on the box.

We have NO problems logging in as other users, and SU'ing to root, but we cannot login as root directly.

Ive checked the passwd file, and root's shell is set to /bin/bash, just like the users.

This used to work, but now doesnt. Anyone?
 
Old 02-25-2005, 10:21 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
RH uses kde isn't it? It could be that you didn't allow root users to login in the kdm options. Check the config file and allow root users.
 
Old 02-25-2005, 10:25 AM   #3
Jamsoft
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by darkleaf
RH uses kde isn't it? It could be that you didn't allow root users to login in the kdm options. Check the config file and allow root users.
Yes, I am using KDE. But I used to be able to log into the KDE as root, and I used to be able to ssh into the box as root. But now I can do neither. Its actually a bit of a bother.
 
Old 02-25-2005, 11:03 AM   #4
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 264

Rep: Reputation: 30
Can you login as root at the CLI?

Perhaps try checking the root home directory (/root - not trying to teach you to suck eggs!) for a stale lock file - I can't remember exactly what it will be called but it is usually X11lock or something similar. Back it up and then delete it, see if that helps?

Also, you could maybe try erasing the root password and then creating a new one.

Try this:

http://www.aplawrence.com/Linux/lostlinuxpassword.html

That looks about right..

Last edited by morrolan; 02-25-2005 at 11:52 AM.
 
Old 02-25-2005, 11:32 AM   #5
Jamsoft
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by morrolan
Can you login as root at the CLI?

Perhaps try checking the root home directory (/root - not trying to teach you to suck eggs!) for a stale lock file - I can't remember exactly what it will be called but it is usually X11lock or something similar. Back it up and then delete it, see if that helps?
I recall there being an X0 lockfile in the /tmp/.X11-unix folder. Lemme verify. There is a file there, but its a new file (has a date of a couple of days ago) and this has been happening for a few months now.

And no, I cannot login as root from the CLI either.

Rich
 
Old 02-25-2005, 11:53 AM   #6
morrolan
Member
 
Registered: Sep 2003
Location: Manchester UK
Posts: 264

Rep: Reputation: 30
I may be way off on this, but the lock file may refresh each time a login is attempted?

That's odd though because I don't think an X lockfile will be responsible for not being able to login at the CLI.

Have you checked for rootkits?

Last edited by morrolan; 02-25-2005 at 11:54 AM.
 
Old 02-25-2005, 11:59 AM   #7
Jamsoft
LQ Newbie
 
Registered: Feb 2005
Posts: 4

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by morrolan
I may be way off on this, but the lock file may refresh each time a login is attempted?

That's odd though because I don't think an X lockfile will be responsible for not being able to login at the CLI.

Have you checked for rootkits?
Not lately, but this machine IS sitting on an internal network, on a non-routable network. Theres no way for someone to get TO it from the outside. And the machine is only used by a couple of programmers for testing php pages before uploading to our production servers.

I just rebooted the box. The X0 lockfile is refreshed when xWindows starts, apparently.

Rich
 
  


Reply


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
Problems with root proNick Ubuntu 4 11-16-2005 04:10 AM
x problems when not under root tehnick Debian 2 04-20-2005 05:41 AM
problems with root filesystem ramzai Linux - Newbie 2 02-11-2005 02:04 PM
root files: create as root:root or root:wheel? pcass Linux - Security 1 02-07-2004 05:14 PM
Root problems with X blueplazma Linux - General 6 10-28-2002 12:28 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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