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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
02-25-2005, 10:10 AM
|
#1
|
LQ Newbie
Registered: Feb 2005
Posts: 4
Rep:
|
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?
|
|
|
02-25-2005, 10:21 AM
|
#2
|
Senior Member
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170
Rep:
|
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.
|
|
|
02-25-2005, 10:25 AM
|
#3
|
LQ Newbie
Registered: Feb 2005
Posts: 4
Original Poster
Rep:
|
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.
|
|
|
02-25-2005, 11:03 AM
|
#4
|
Member
Registered: Sep 2003
Location: Manchester UK
Posts: 264
Rep:
|
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.
|
|
|
02-25-2005, 11:32 AM
|
#5
|
LQ Newbie
Registered: Feb 2005
Posts: 4
Original Poster
Rep:
|
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
|
|
|
02-25-2005, 11:53 AM
|
#6
|
Member
Registered: Sep 2003
Location: Manchester UK
Posts: 264
Rep:
|
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.
|
|
|
02-25-2005, 11:59 AM
|
#7
|
LQ Newbie
Registered: Feb 2005
Posts: 4
Original Poster
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 11:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|